diff options
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 57cba07a..8461981f 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -651,7 +651,7 @@ void Cmd_Team_f( gentity_t *ent ) else if( level.alienTeamLocked || aliens > humans ) team = TEAM_HUMANS; else - team = TEAM_ALIENS + ( rand( ) % 2 ); + team = TEAM_ALIENS + rand( ) / ( RAND_MAX / 2 + 1 ); } else switch( G_TeamFromString( s ) ) { |