Removed a potential issue
This commit is contained in:
@@ -162,13 +162,13 @@ namespace Barotrauma
|
|||||||
});
|
});
|
||||||
GameMain.GameSession?.Update((float)deltaTime);
|
GameMain.GameSession?.Update((float)deltaTime);
|
||||||
|
|
||||||
Parallel.ForEach(physicsBodies, parallelOptions, body =>
|
foreach (PhysicsBody body in physicsBodies)
|
||||||
{
|
{
|
||||||
if (body.Enabled && body.BodyType != BodyType.Static)
|
if (body.Enabled && body.BodyType != BodyType.Static)
|
||||||
{
|
{
|
||||||
body.SetPrevTransform(body.SimPosition, body.Rotation);
|
body.SetPrevTransform(body.SimPosition, body.Rotation);
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
|
||||||
MapEntity.ClearHighlightedEntities();
|
MapEntity.ClearHighlightedEntities();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user