Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new iTeamID;
- if(aTeamCount[WWTW_TEAMATTACK] == aTeamCount[WWTW_TEAMDEFEND])
- {
- // Teamcount is equal, random team
- iTeamID = random(2);
- }
- else
- {
- if(teamCount[WWTW_TEAMATTACK] > teamCount[WWTW_TEAMDEFEND])
- {
- // Attack team is bigger, make him a defender
- iTeamID = WWTW_TEAMDEFEND;
- }
- else
- {
- // The other way around
- iTeamID = WWTW_TEAMATTACK;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement