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:
Jens Ayton 2011-04-27 19:26:11 +00:00
parent 2fdf7f25b6
commit 92749b1a1e

View File

@ -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)
{