[iortcw] 41/89: All: Fix bot_minplayers passing delay as team to addbot in non-team gametypes

Simon McVittie smcv at debian.org
Fri Sep 8 10:44:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to tag 1.51b
in repository iortcw.

commit ca5aa2966bfdf8c512067fa6259d342f0d6c3277
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Wed Jul 19 11:53:32 2017 -0400

    All: Fix bot_minplayers passing delay as team to addbot in non-team gametypes
---
 MP/code/game/g_bot.c | 6 +++---
 SP/code/game/g_bot.c | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/MP/code/game/g_bot.c b/MP/code/game/g_bot.c
index e9d7dab..e594e86 100644
--- a/MP/code/game/g_bot.c
+++ b/MP/code/game/g_bot.c
@@ -235,12 +235,12 @@ void G_AddRandomBot( int team ) {
 	value = Info_ValueForKey( g_botInfos[n], "name" );
 
 	skill = trap_Cvar_VariableIntegerValue( "g_spSkill" );
-	if (team == TEAM_RED) {
+	if ( team == TEAM_RED ) {
 		teamstr = "red";
-	} else if (team == TEAM_BLUE) {
+	} else if ( team == TEAM_BLUE ) {
 		teamstr = "blue";
 	} else {
-		teamstr = "";
+		teamstr = "free";
 	}
 	Q_strncpyz( netname, value, sizeof( netname ) );
 	Q_CleanStr( netname );
diff --git a/SP/code/game/g_bot.c b/SP/code/game/g_bot.c
index 3d7ef3c..f2343e9 100644
--- a/SP/code/game/g_bot.c
+++ b/SP/code/game/g_bot.c
@@ -236,12 +236,12 @@ void G_AddRandomBot( int team ) {
 	value = Info_ValueForKey( g_botInfos[n], "name" );
 
 	skill = trap_Cvar_VariableIntegerValue( "g_spSkill" );
-	if (team == TEAM_RED) {
+	if ( team == TEAM_RED ) {
 		teamstr = "red";
-	} else if (team == TEAM_BLUE) {
+	} else if ( team == TEAM_BLUE ) {
 		teamstr = "blue";
 	} else {
-		teamstr = "";
+		teamstr = "free";
 	}
 	Q_strncpyz( netname, value, sizeof( netname ) );
 	Q_CleanStr( netname );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list