Hardening of several teamplay functions.
I've made several teamplay functions check their arguments more carefully. This should fix a server crash in master
.
- Added
Team_IsValidTeam
andTeam_IsValidNumber
. -
IsTeamSmallerThanTeam
andIsTeamEqualToTeam
will now crash if given invalid teams. This should make bugs obvious. - Removed
only_return_best
and return value fromJoinBestTeam
. They were unused and made the code much more complicated. -
AutoBalanceBots
will now correctly check for given teams and issue a warning if they are invalid.