Skip to content

Commit

Permalink
Fix double exit dialog appearence (ihhub#2928)
Browse files Browse the repository at this point in the history
try to close and press Esc button to get the second dialog
  • Loading branch information
ihhub authored Mar 9, 2021
1 parent 6fd4ab4 commit f1b5696
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fheroes2/game/game_mainmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ int Game::MainMenu( bool isFirstGameRun )
// display.Fade();
break;
}
else {
continue;
}
}

bool redrawScreen = false;
Expand Down
3 changes: 3 additions & 0 deletions src/fheroes2/game/game_scenarioinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ int Game::ScenarioInfo( void )
fheroes2::FadeDisplay();
return QUITGAME;
}
else {
continue;
}
}

// press button
Expand Down
3 changes: 3 additions & 0 deletions src/fheroes2/game/game_startgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,9 @@ int Interface::Basic::HumanTurn( bool isload )
res = Game::QUITGAME;
break;
}
else {
continue;
}
}

if ( !isOngoingFastScrollEvent )
Expand Down

0 comments on commit f1b5696

Please sign in to comment.