You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After doing a bit more research, I found a way to go around the crash:
Setting the gamerules's m_bPlayingKoth variable to false prevents the game from crashing.
This makes we wonder if the error is actually from CTeamControlPointMaster::CalcNumRoundsRemaining as neither this function or CTFGameRules::SendWinPanelInfo (the function that calls CTeamControlPointMaster::CalcNumRoundsRemaining)
have any mention of m_bPlayingKoth or CTFGameRules::IsInKothMode. Crash reports also indicate that CTFGameRules::SetWinningTeam is the culprit.
Using the updated source-sdk-2013, I found that this was caused by an infinite loop in CTeamControlPointerMaster::CalcNumRoundsRemaining in game/server/team_control_point_master.cpp. This function tries to count how many mini-rounds are left for the input team to win before it wins the entire, but in KotH there are no mini-rounds, and this function wasn't made for that and ends up crashing. This can be fixed by adding this line to the beginning of CTeamControlPointerMaster::CalcNumRoundsRemaining:
The
game_round_win
entity'sRoundWin
input crashes the game when playing on King of the Hill maps.Apparently, this is due to an infinite loop in
CTeamControlPointMaster::CalcNumRoundsRemaining
.This seems unlikely after doing more research, check my second comment.
The text was updated successfully, but these errors were encountered: