From 050269ccfc40b94a2255939df38831d2c75340d3 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 12 Oct 2018 23:21:24 +0200 Subject: [PATCH] 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. --- src/screens.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.34.1