(771621c77) Added: Delays for medical & flooding tutorials, resetting of injuredmember when starting again

This commit is contained in:
Joonas Rikkonen
2019-03-27 20:51:33 +02:00
parent 723df67f6f
commit 5a620ec60d
8 changed files with 280 additions and 26 deletions
@@ -663,6 +663,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);