X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame.c;h=f359a2cbdfb406c6bf018873c7b14c5901397dfc;hp=8d1954dab05e888ce586d6eb4463233f4e2eb475;hb=4848f0bcd25bee8a7a4e48ae7d2a670bbc4e278d;hpb=298cffce2845fea10a2f0420a26db13ea9179e57 diff --git a/src/game.c b/src/game.c index 8d1954da..f359a2cb 100644 --- a/src/game.c +++ b/src/game.c @@ -14938,7 +14938,10 @@ void RequestRestartGame(char *message) { game.restart_game_message = NULL; - if (Request(message, REQ_ASK | REQ_STAY_CLOSED)) + boolean has_started_game = hasStartedNetworkGame(); + int request_mode = (has_started_game ? REQ_ASK : REQ_CONFIRM); + + if (Request(message, request_mode | REQ_STAY_CLOSED) && has_started_game) { StartGameActions(network.enabled, setup.autorecord, level.random_seed); } @@ -14977,7 +14980,9 @@ void CheckGameOver(void) } if (last_game_over != game_over) - game.restart_game_message = "Game over! Play it again?"; + game.restart_game_message = (hasStartedNetworkGame() ? + "Game over! Play it again?" : + "Game over!"); last_game_over = game_over; }