From ee253ddf57801b13e5226d98a223fe0a11092b28 Mon Sep 17 00:00:00 2001 From: oy Date: Sun, 14 Oct 2018 10:24:42 +0200 Subject: [PATCH] fixed a server problem on dbgstress --- src/game/server/gamecontroller.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/game/server/gamecontroller.cpp b/src/game/server/gamecontroller.cpp index 6fc072e44..d6945396f 100644 --- a/src/game/server/gamecontroller.cpp +++ b/src/game/server/gamecontroller.cpp @@ -1126,17 +1126,16 @@ void IGameController::DoTeamChange(CPlayer *pPlayer, int Team, bool DoChatMsg) int IGameController::GetStartTeam() { - // this will force the auto balancer to work overtime aswell - if(g_Config.m_DbgStress) - return TEAM_RED; - if(g_Config.m_SvTournamentMode) return TEAM_SPECTATORS; // determine new team int Team = TEAM_RED; if(IsTeamplay()) - Team = m_aTeamSize[TEAM_RED] > m_aTeamSize[TEAM_BLUE] ? TEAM_BLUE : TEAM_RED; + { + if(!g_Config.m_DbgStress) // this will force the auto balancer to work overtime aswell + Team = m_aTeamSize[TEAM_RED] > m_aTeamSize[TEAM_BLUE] ? TEAM_BLUE : TEAM_RED; + } // check if there're enough player slots left if(m_aTeamSize[TEAM_RED]+m_aTeamSize[TEAM_BLUE] < Server()->MaxClients()-g_Config.m_SvSpectatorSlots)