From c845df106ed2c6af8923eb3d9dc1eb7af621861e Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 17 Aug 2018 12:16:20 +0200 Subject: [PATCH] fixed pausing network games if the game already ended --- src/tools.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools.c b/src/tools.c index ab6c4efa..c1444581 100644 --- a/src/tools.c +++ b/src/tools.c @@ -4570,6 +4570,7 @@ static boolean RequestDoor(char *text, unsigned int req_state) /* pause network game while waiting for request to answer */ if (network.enabled && game_status == GAME_MODE_PLAYING && + !AllPlayersGone && req_state & REQUEST_WAIT_FOR_INPUT) SendToServer_PausePlaying(); @@ -4710,6 +4711,7 @@ static boolean RequestDoor(char *text, unsigned int req_state) /* continue network game after request */ if (network.enabled && game_status == GAME_MODE_PLAYING && + !AllPlayersGone && req_state & REQUEST_WAIT_FOR_INPUT) SendToServer_ContinuePlaying(); @@ -4736,6 +4738,7 @@ static boolean RequestEnvelope(char *text, unsigned int req_state) /* pause network game while waiting for request to answer */ if (network.enabled && game_status == GAME_MODE_PLAYING && + !AllPlayersGone && req_state & REQUEST_WAIT_FOR_INPUT) SendToServer_PausePlaying(); @@ -4793,6 +4796,7 @@ static boolean RequestEnvelope(char *text, unsigned int req_state) /* continue network game after request */ if (network.enabled && game_status == GAME_MODE_PLAYING && + !AllPlayersGone && req_state & REQUEST_WAIT_FOR_INPUT) SendToServer_ContinuePlaying(); -- 2.34.1