(cb8c9ec1b) Fixed subs not being rendered when switching from the game screen to the sub editor immediately after the round starts

This commit is contained in:
Joonas Rikkonen
2019-05-03 13:51:05 +03:00
parent 8c678e3977
commit e3a485edd3
5 changed files with 302 additions and 104 deletions
@@ -2276,6 +2276,11 @@ namespace Barotrauma
GameMain.LightManager.UpdateLightMap(graphics, spriteBatch, cam);
}
foreach (Submarine sub in Submarine.Loaded)
{
sub.UpdateTransform();
}
spriteBatch.Begin(SpriteSortMode.BackToFront,
BlendState.AlphaBlend,
null, null, null, null,