From 298cffce2845fea10a2f0420a26db13ea9179e57 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 12 Oct 2018 23:41:05 +0200 Subject: [PATCH] fixed handling game actions during "play again" request in network mode --- src/game.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game.c b/src/game.c index eed45977..8d1954da 100644 --- a/src/game.c +++ b/src/game.c @@ -11346,7 +11346,8 @@ static void GameActionsExt(void) if (game_status != GAME_MODE_PLAYING) return; - if (!network_player_action_received) + /* check if network player actions still missing and game still running */ + if (!network_player_action_received && !checkGameEnded()) return; /* failed to get network player actions in time */ /* do not yet reset "network_player_action_received" (for tape.pausing) */ @@ -11386,7 +11387,7 @@ static void GameActionsExt(void) stored_player[i].effective_action = stored_player[i].action; } - if (network_playing) + if (network_playing && !checkGameEnded()) SendToServer_MovePlayer(summarized_player_action); // summarize all actions at local players mapped input device position -- 2.34.1