Fix bot_minplayers passing delay as team to addbot in non-team gametypes

This commit is contained in:
Zack Middleton 2017-06-29 15:52:20 -05:00
parent 51649695a5
commit d0d1fe1b7c

View file

@ -317,7 +317,7 @@ void G_AddRandomBot( int team ) {
skill = trap_Cvar_VariableValue( "g_spSkill" );
if (team == TEAM_RED) teamstr = "red";
else if (team == TEAM_BLUE) teamstr = "blue";
else teamstr = "";
else teamstr = "free";
Q_strncpyz(netname, value, sizeof(netname));
Q_CleanStr(netname);
trap_SendConsoleCommand( EXEC_INSERT, va("addbot %s %f %s %i\n", netname, skill, teamstr, 0) );