Skip to content

Commit

Permalink
Fix "unpause the game when all players left"
Browse files Browse the repository at this point in the history
Previously, it would pause the game when the last player left.
  • Loading branch information
heinrich5991 committed Oct 13, 2018
1 parent d7aa745 commit 344a58c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/game/server/gamecontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 344a58c

Please sign in to comment.