v0.11.0.9

This commit is contained in:
Joonas Rikkonen
2020-12-09 16:34:16 +02:00
parent bbf06f0984
commit f433a7ba10
325 changed files with 13947 additions and 3652 deletions
@@ -119,11 +119,15 @@ namespace Barotrauma
}
#endif
#if CLIENT
GameMain.LightManager?.Update((float)deltaTime);
#endif
GameTime += deltaTime;
foreach (PhysicsBody body in PhysicsBody.List)
{
if (body.Enabled) { body.Update(); }
if (body.Enabled && body.BodyType != FarseerPhysics.BodyType.Static) { body.Update(); }
}
foreach (MapEntity e in MapEntity.mapEntityList)
{
@@ -221,7 +225,10 @@ namespace Barotrauma
foreach (PhysicsBody body in PhysicsBody.List)
{
if (body.Enabled) { body.SetPrevTransform(body.SimPosition, body.Rotation); }
if (body.Enabled && body.BodyType != FarseerPhysics.BodyType.Static)
{
body.SetPrevTransform(body.SimPosition, body.Rotation);
}
}
#if CLIENT