(04efc4310) Fixed splash screens playing after loading screen is closed + fixed splash screens getting skipped while out of focus

This commit is contained in:
Joonas Rikkonen
2019-06-04 16:42:18 +03:00
parent 3393cb7a1b
commit d1ca8f1fb8
3 changed files with 2 additions and 180 deletions
@@ -295,7 +295,7 @@ namespace Barotrauma
spriteBatch.Draw(currSplashScreen.GetTexture(), new Rectangle(0, 0, GameMain.GraphicsWidth, GameMain.GraphicsHeight), Color.White);
spriteBatch.End();
if (PlayerInput.KeyHit(Keys.Space) || PlayerInput.KeyHit(Keys.Enter) || PlayerInput.LeftButtonDown())
if (GameMain.WindowActive && (PlayerInput.KeyHit(Keys.Space) || PlayerInput.KeyHit(Keys.Enter) || PlayerInput.LeftButtonDown()))
{
currSplashScreen.Dispose(); currSplashScreen = null;
}