PressStartScreen fix

Fixed the issue where when you press a key to go to the main menu while the splash/logo screen was fading in, it would freeze halfway through the fade and you'd have a main menu with a darker background than it should be. Now when you press a key, it just skips the fade before switching the screen to the mainmenu
This commit is contained in:
JappaWakka 2021-09-29 14:43:07 +02:00
parent 106de657f0
commit 7583e5d97c
1 changed files with 21 additions and 20 deletions

View File

@ -151,6 +151,7 @@ Public Class PressStartScreen
If IsCurrentScreen() Then
If KeyBoardHandler.KeyPressed(KeyBindings.EnterKey1) Or KeyBoardHandler.KeyPressed(KeyBindings.EnterKey2) Or ControllerHandler.ButtonPressed(Buttons.A) Or MouseHandler.ButtonPressed(MouseHandler.MouseButtons.LeftButton) Then
_fadeInMain = 0.0F
SetScreen(New NewMainMenuScreen(Me))
End If
End If