All remaining physics bodies are removed at the end of submarine unloading (freeing debug bodyShapeTextures, etc). -> LevelTrigger bodies don't have to be removed separately during unloading

This commit is contained in:
Joonas Rikkonen
2017-08-24 20:30:10 +03:00
parent 65094a02c1
commit 1a12f46708
3 changed files with 17 additions and 4 deletions
@@ -113,7 +113,7 @@ namespace Barotrauma
sub.SetPrevTransform(sub.Position);
}
foreach (PhysicsBody pb in PhysicsBody.list)
foreach (PhysicsBody pb in PhysicsBody.List)
{
pb.SetPrevTransform(pb.SimPosition, pb.Rotation);
}