X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame.c;h=8d1954dab05e888ce586d6eb4463233f4e2eb475;hp=eed459776345f33d6bc402864eb4ba6bf1a56c00;hb=298cffce2845fea10a2f0420a26db13ea9179e57;hpb=050269ccfc40b94a2255939df38831d2c75340d3 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