From 039ea30c37a86612a1c5596e4b18431361ac7b22 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Sun, 26 Nov 2023 19:19:24 +0100 Subject: [PATCH] Never send pause flag on game end (closed #60) --- src/game/server/gamecontroller.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/server/gamecontroller.cpp b/src/game/server/gamecontroller.cpp index 1742ad80df2..1a864e61975 100644 --- a/src/game/server/gamecontroller.cpp +++ b/src/game/server/gamecontroller.cpp @@ -888,10 +888,12 @@ void IGameController::Snap(int SnappingClient) pGameData->m_GameStateEndTick = Server()->Tick() + m_GameStateTimer; break; case IGS_END_ROUND: + pGameData->m_GameStateFlags = pGameData->m_GameStateFlags & ~protocol7::GAMESTATEFLAG_PAUSED; // clear pause pGameData->m_GameStateFlags |= protocol7::GAMESTATEFLAG_ROUNDOVER; pGameData->m_GameStateEndTick = Server()->Tick() - m_GameStartTick - TIMER_END / 2 * Server()->TickSpeed() + m_GameStateTimer; break; case IGS_END_MATCH: + pGameData->m_GameStateFlags = pGameData->m_GameStateFlags & ~protocol7::GAMESTATEFLAG_PAUSED; // clear pause pGameData->m_GameStateFlags |= protocol7::GAMESTATEFLAG_GAMEOVER; pGameData->m_GameStateEndTick = Server()->Tick() - m_GameStartTick - TIMER_END * Server()->TickSpeed() + m_GameStateTimer; break;