mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-11 15:52:30 +00:00
Fixed team auto (PickTeam) up for TP
This commit is contained in:
parent
c95409e0a9
commit
edc0c9b997
1 changed files with 10 additions and 2 deletions
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.43 2002/03/02 15:39:34 jbravo
|
||||
// Fixed team auto (PickTeam) up for TP
|
||||
//
|
||||
// Revision 1.42 2002/03/02 14:54:24 jbravo
|
||||
// Added the skin and model names to the name of the player thats being
|
||||
// followed, as in AQ
|
||||
|
@ -645,8 +648,13 @@ PickTeam
|
|||
team_t PickTeam( int ignoreClientNum ) {
|
||||
int counts[TEAM_NUM_TEAMS];
|
||||
|
||||
if (g_gametype.integer == GT_TEAMPLAY) {
|
||||
counts[TEAM_BLUE] = RQ3TeamCount (ignoreClientNum, TEAM_BLUE);
|
||||
counts[TEAM_RED] = RQ3TeamCount (ignoreClientNum, TEAM_RED);
|
||||
} else {
|
||||
counts[TEAM_BLUE] = TeamCount (ignoreClientNum, TEAM_BLUE);
|
||||
counts[TEAM_RED] = TeamCount (ignoreClientNum, TEAM_RED);
|
||||
}
|
||||
|
||||
if ( counts[TEAM_BLUE] > counts[TEAM_RED] ) {
|
||||
return TEAM_RED;
|
||||
|
|
Loading…
Reference in a new issue