end a round when there's only 1 player left (#961)

This commit is contained in:
BeaR 2012-07-12 09:23:05 +02:00 committed by oy
parent a9165cd7a0
commit 96d30fa820

View file

@ -566,7 +566,7 @@ void IGameController::SetGameState(EGameState GameState, int Timer)
case IGS_END_ROUND:
case IGS_END_MATCH:
// only possible when game is running or over
if(m_GameState == IGS_GAME_RUNNING || m_GameState == IGS_END_MATCH || m_GameState == IGS_END_ROUND)
if(m_GameState == IGS_GAME_RUNNING || m_GameState == IGS_END_MATCH || m_GameState == IGS_END_ROUND || m_GameState == IGS_GAME_PAUSED)
{
m_GameState = GameState;
m_GameStateTimer = Timer*Server()->TickSpeed();
@ -747,7 +747,7 @@ void IGameController::Tick()
DoActivityCheck();
// win check
if(m_GameState == IGS_GAME_RUNNING && !GameServer()->m_World.m_ResetRequested)
if((m_GameState == IGS_GAME_RUNNING || m_GameState == IGS_GAME_PAUSED) && !GameServer()->m_World.m_ResetRequested)
{
if(m_GameFlags&GAMEFLAG_SURVIVAL)
DoWincheckRound();