mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
Fix bot_minplayers passing delay as team to addbot in non-team gametypes
This commit is contained in:
parent
51649695a5
commit
d0d1fe1b7c
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ void G_AddRandomBot( int team ) {
|
||||||
skill = trap_Cvar_VariableValue( "g_spSkill" );
|
skill = trap_Cvar_VariableValue( "g_spSkill" );
|
||||||
if (team == TEAM_RED) teamstr = "red";
|
if (team == TEAM_RED) teamstr = "red";
|
||||||
else if (team == TEAM_BLUE) teamstr = "blue";
|
else if (team == TEAM_BLUE) teamstr = "blue";
|
||||||
else teamstr = "";
|
else teamstr = "free";
|
||||||
Q_strncpyz(netname, value, sizeof(netname));
|
Q_strncpyz(netname, value, sizeof(netname));
|
||||||
Q_CleanStr(netname);
|
Q_CleanStr(netname);
|
||||||
trap_SendConsoleCommand( EXEC_INSERT, va("addbot %s %f %s %i\n", netname, skill, teamstr, 0) );
|
trap_SendConsoleCommand( EXEC_INSERT, va("addbot %s %f %s %i\n", netname, skill, teamstr, 0) );
|
||||||
|
|
Loading…
Reference in a new issue