When losing a game, pressing "space" or "enter" key before being asked
to play again restarts the game. When replaying a tape, a new game was
started instead of returning to the main menu. This commit fixes this
bug.
// "game over" (if automatically asking for restarting the game is disabled in setup)
// do not handle game end if game over and automatically asking for game restart
- if (game_over && setup.ask_on_game_over)
+ if (game.GamePlayed && game_over && setup.ask_on_game_over)
{
// (this is a special case: player pressed "return" key or fire button shortly before
// automatically asking to restart the game, so skip asking and restart right away)