X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=f0bf7dd9600b8bef766243fad5256c9fdd382372;hb=066b410c0573fe64a1783116daf9d64883e9f03e;hp=6d536ec61824da1b027d525fa4620b2cc341e2d5;hpb=2443a8a09966a9940e1420c91d24a297325c2a00;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index 6d536ec6..f0bf7dd9 100644 --- a/src/game.c +++ b/src/game.c @@ -6305,10 +6305,10 @@ void RaiseScoreElement(int element) } } -void RequestQuitGame() +void RequestQuitGame(boolean ask_if_really_quit) { if (AllPlayersGone || - !setup.ask_on_escape || + !ask_if_really_quit || level_editor_test_game || Request("Do you really want to quit the game ?", REQ_ASK | REQ_STAY_CLOSED)) @@ -6478,7 +6478,7 @@ static void HandleGameButtons(struct GadgetInfo *gi) switch (id) { case GAME_CTRL_ID_STOP: - RequestQuitGame(); + RequestQuitGame(TRUE); break; case GAME_CTRL_ID_PAUSE: