[ioquake3] 13/50: Fix bot_minplayers passing delay as team to addbot in non-team gametypes
Simon McVittie
smcv at debian.org
Sun Jul 23 21:55:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository ioquake3.
commit d0d1fe1b7c7e0321b06e170b6552fd1bd2194820
Author: Zack Middleton <zack at cloemail.com>
Date: Thu Jun 29 15:52:20 2017 -0500
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 4d3eb61..2c363eb 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) );
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list