Subentity mass is now accounted for correctly.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4528 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
2fdf7f25b6
commit
92749b1a1e
@ -1647,7 +1647,7 @@ ShipEntity* doOctreesCollide(ShipEntity* prime, ShipEntity* other)
|
||||
collision_radius = distance;
|
||||
}
|
||||
|
||||
mass += 20.0 * [(ShipEntity *)subent volume];
|
||||
mass += [subent mass];
|
||||
}
|
||||
if (distance > _profileRadius)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user