Merge pull request #555 from Vocaluxe/Stefan1200-de-songreloadfix

Fix reloading songs with F5 & CTRL+R key shortcuts
This commit is contained in:
Stefan authored and GitHub committed 2021-09-23 13:18:09 +02:00
commit b9922a3b0b
1 file changed
+6 -6
+6 -6
View File
@@ -328,21 +328,21 @@ namespace Vocaluxe.Screens
song.Save();
break;
// Restart Round and reload song file header
// Restart Song and reload song from disk (not in party modes with multiple rounds)
case Keys.R:
if (keyEvent.Mod == EModifier.Ctrl && _Pause)
if (keyEvent.Mod == EModifier.Ctrl && _Pause && CGame.NumRounds == 1)
{
_RestartGame();
_SetPause(false);
_RestartRound();
}
break;
// Restart Round and reload song file header
// Restart Song and reload song from disk (not in party modes with multiple rounds)
case Keys.F5:
if (_Pause)
if (_Pause && CGame.NumRounds == 1)
{
_RestartGame();
_SetPause(false);
_RestartRound();
}
break;