(b9babfcf6) Merge branch 'ragdoll-syncing-improvements' into dev

This commit is contained in:
Joonas Rikkonen
2019-04-01 22:49:01 +03:00
parent a0e1ba52eb
commit fc9a3893f6
4 changed files with 111 additions and 64 deletions
@@ -656,6 +656,13 @@ namespace Barotrauma
msg.Timer -= deltaTime;
msg.Pos += msg.Velocity * deltaTime;
}
foreach (GUIMessage msg in messages)
{
if (!msg.WorldSpace) continue;
msg.Timer -= deltaTime;
msg.Pos += msg.Velocity * deltaTime;
}
}
messages.RemoveAll(m => m.Timer <= 0.0f);