projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed function parameter handling (with same functionality)
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index 48f5e7f158e13c68da188ade38a79d427057f63b..476b67b049b34db5f50c3f57a4ece155f0b99a72 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-15406,9
+15406,10
@@
void RequestQuitGameExt(boolean skip_request, boolean quick_quit, char *message)
}
}
}
}
-void RequestQuitGame(boolean
ask_if_really_quit
)
+void RequestQuitGame(boolean
escape_key_pressed
)
{
{
- boolean quick_quit = (!ask_if_really_quit || level_editor_test_game);
+ boolean quick_quit = ((escape_key_pressed && !setup.ask_on_escape) ||
+ level_editor_test_game);
boolean skip_request = game.all_players_gone || quick_quit;
RequestQuitGameExt(skip_request, quick_quit,
boolean skip_request = game.all_players_gone || quick_quit;
RequestQuitGameExt(skip_request, quick_quit,
@@
-16271,7
+16272,7
@@
static void HandleGameButtonsExt(int id, int button)
if (tape.playing)
TapeStop();
else
if (tape.playing)
TapeStop();
else
- RequestQuitGame(
TRU
E);
+ RequestQuitGame(
FALS
E);
break;
break;