diff options
author | heinrich5991 <heinrich5991@gmail.com> | 2018-10-13 21:46:28 +0200 |
---|---|---|
committer | heinrich5991 <heinrich5991@gmail.com> | 2018-10-13 21:46:28 +0200 |
commit | 344a58cd858669f2b742827024dff7fd25fccccf (patch) | |
tree | 7fae015093e3fc6edc127b4dc1e5f224aa249a68 | |
parent | d7aa74591a391186a1b484eb3462c35d4dec0e73 (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.cpp | 5 |
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) |