mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
end a round when there's only 1 player left (#961)
This commit is contained in:
parent
a9165cd7a0
commit
96d30fa820
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue