Skip to content

Commit

Permalink
Implement ValveSoftware#947
Browse files Browse the repository at this point in the history
  • Loading branch information
Bitl committed Mar 6, 2025
1 parent 854fc2a commit 528050f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/game/shared/tf/tf_logic_player_destruction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,13 @@ void CTFPlayerDestructionLogic::EvaluatePlayerCount()
CollectPlayers( &vecAllPlayers );

m_nMaxPoints = Max( m_nMinPoints, m_nPointsPerPlayer * vecAllPlayers.Count() );

#ifdef BDSBASE
if (m_nRedScore.Get() >= m_nMaxPoints || m_nBlueScore.Get() >= m_nMaxPoints)
{
m_nMaxPoints = Max(m_nRedScore.Get(), m_nBlueScore.Get()) + 1;
}
#endif
}

void CTFPlayerDestructionLogic::InputScoreRedPoints( inputdata_t& inputdata )
Expand Down

0 comments on commit 528050f

Please sign in to comment.