X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fscreens.c;h=dbed745e212b8df13a59dbe62c74f6bfaef990c8;hp=a4489ab32048405e751f341063fdc5cd251a21c8;hb=b454c38f3381978b6813eb06c736adaa38c55b89;hpb=3d236f777bca55fef0f6b23122b6affd0f424249 diff --git a/src/screens.c b/src/screens.c index a4489ab3..dbed745e 100644 --- a/src/screens.c +++ b/src/screens.c @@ -234,7 +234,7 @@ void HandleMainMenu(int mx, int my, int dx, int dy, int button) else if (y==10) { SavePlayerInfo(PLAYER_LEVEL); - if (Request("Do you really want to quit ?",REQ_ASK|REQ_STAY_CLOSED)) + if (Request("Do you really want to quit ?", REQ_ASK | REQ_STAY_CLOSED)) game_status = EXITGAME; } @@ -1507,8 +1507,13 @@ void HandleGameButtons(int mx, int my, int button) if (Request("Do you really want to quit the game ?", REQ_ASK | REQ_STAY_CLOSED)) { - game_status = MAINMENU; - DrawMainMenu(); + if (standalone) + { + game_status = MAINMENU; + DrawMainMenu(); + } + else + SendToServer_StopPlaying(); } else OpenDoor(DOOR_OPEN_1 | DOOR_COPY_BACK);