/** allow overriding of team counts */
#define EV_TeamBalance_GetTeamCount(i, o) \
- /** team to count */ i(float, MUTATOR_ARGV_0_float) \
+ /** team index to count */ i(float, MUTATOR_ARGV_0_float) \
/** player to ignore */ i(entity, MUTATOR_ARGV_1_entity) \
/** number of players in a team */ i(float, MUTATOR_ARGV_2_float) \
/**/ o(float, MUTATOR_ARGV_2_float) \
entity team_ = TeamBalance_GetTeamFromIndex(balance, i);
if (TeamBalanceTeam_IsAllowed(team_))
{
- MUTATOR_CALLHOOK(TeamBalance_GetTeamCount, Team_IndexToTeam(i),
- ignore, team_.m_num_players, team_.m_num_bots,
- team_.m_lowest_human, team_.m_lowest_bot);
+ MUTATOR_CALLHOOK(TeamBalance_GetTeamCount, i, ignore,
+ team_.m_num_players, team_.m_num_bots, team_.m_lowest_human,
+ team_.m_lowest_bot);
team_.m_num_players = M_ARGV(2, float);
team_.m_num_bots = M_ARGV(3, float);
team_.m_lowest_human = M_ARGV(4, entity);