From d0d1fe1b7c7e0321b06e170b6552fd1bd2194820 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 29 Jun 2017 15:52:20 -0500 Subject: [PATCH] Fix bot_minplayers passing delay as team to addbot in non-team gametypes --- code/game/g_bot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/g_bot.c b/code/game/g_bot.c index 4d3eb612..2c363ebd 100644 --- a/code/game/g_bot.c +++ b/code/game/g_bot.c @@ -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) );