(10a8ba8fc) Fix reversing getting reset when the target is not in range causing issues in steering.

This commit is contained in:
Joonas Rikkonen
2019-04-01 22:48:33 +03:00
parent ed3d5fadeb
commit 885c30f70d
5 changed files with 94 additions and 73 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);