(633f44200) Emptying the "required items" field of an item in the sub editor now removes the item requirements (instead of using the default ones)

This commit is contained in:
Joonas Rikkonen
2019-04-01 22:48:03 +03:00
parent 4558d8b919
commit cbb3216466
5 changed files with 54 additions and 19 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);