Skip to content

Commit a2b838f

Browse files
committed
ignore next level setting during multi-series, which forces a game over
1 parent d52e2d4 commit a2b838f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/game/shared/teamplayroundbased_gamerules.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,14 @@ int CTeamplayRoundBasedRules::GetTimeLeft( void )
13991399
//-----------------------------------------------------------------------------
14001400
bool CTeamplayRoundBasedRules::CheckNextLevelCvar( bool bAllowEnd /*= true*/ )
14011401
{
1402+
ETFMatchGroup eMatchGroup = TFGameRules()->GetCurrentMatchGroupWithEmulation();
1403+
bool bMultiSeries = GetMatchGroupDescription( eMatchGroup ) && GetMatchGroupDescription( eMatchGroup )->BUsesMultiSeries();
1404+
if ( bMultiSeries )
1405+
{
1406+
// cannot force the game to be over when next level is set during multi-series.
1407+
return false;
1408+
}
1409+
14021410
if ( m_bForceMapReset )
14031411
{
14041412
if ( nextlevel.GetString() && *nextlevel.GetString() )

0 commit comments

Comments
 (0)