summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorheinrich5991 <heinrich5991@gmail.com>2018-10-13 21:46:28 +0200
committerheinrich5991 <heinrich5991@gmail.com>2018-10-13 21:46:28 +0200
commit344a58cd858669f2b742827024dff7fd25fccccf (patch)
tree7fae015093e3fc6edc127b4dc1e5f224aa249a68
parentd7aa74591a391186a1b484eb3462c35d4dec0e73 (diff)
Fix "unpause the game when all players left"0.6.5-release
Previously, it would pause the game when the last player left.
-rw-r--r--src/game/server/gamecontext.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp
index f459bfd3a..660e71fe4 100644
--- a/src/game/server/gamecontext.cpp
+++ b/src/game/server/gamecontext.cpp
@@ -597,7 +597,10 @@ void CGameContext::OnClientDrop(int ClientID, const char *pReason)
if(m_apPlayers[i] && m_apPlayers[i]->GetTeam() != TEAM_SPECTATORS)
return;
}
- m_pController->TogglePause();
+ if(m_World.m_Paused)
+ {
+ m_pController->TogglePause();
+ }
}
void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)