tf2: Fix crash with game_round_win in koth

Fixes https://github.com/ValveSoftware/Source-1-Games/issues/4254
This commit is contained in:
doclic 2025-03-08 16:13:46 +01:00 committed by Autumn
parent 8aefabd725
commit 64e4b89f83

View File

@ -1156,6 +1156,8 @@ int CTeamControlPointMaster::GetNumPointsOwnedByTeam( int iTeam )
//-----------------------------------------------------------------------------
int CTeamControlPointMaster::CalcNumRoundsRemaining( int iTeam )
{
if (m_ControlPointRounds.Count() == 0) return 0;
// To determine how many rounds remain for a given team if it consistently wins mini-rounds, we have to
// simulate forward each mini-round and track the control point ownership that would result