From: Holger Schemel Date: Fri, 12 Oct 2018 21:21:24 +0000 (+0200) Subject: fixed bug with synchronization problem with "play again" in network mode X-Git-Tag: 4.1.2.0~133 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=050269ccfc40b94a2255939df38831d2c75340d3;hp=856dbde29399ce97b14ad604569e1a95ce9545fd fixed bug with synchronization problem with "play again" in network mode This bug caused different frame counters at the network server and network client due to executing "GameActions()" directly after restarting the game in "RequestRestartGame()", which increments the frame counter on the client, but not on the server in the first game frame. --- diff --git a/src/screens.c b/src/screens.c index ae4f7038..1a40ae7c 100644 --- a/src/screens.c +++ b/src/screens.c @@ -8214,8 +8214,12 @@ void HandleGameActions(void) CheckGameOver(); if (game.restart_game_message != NULL) + { RequestRestartGame(game.restart_game_message); + return; + } + if (game_status != GAME_MODE_PLAYING) return;