8000 ebx: Disable using Team Arena characters for random team bots · Turtle-Arena/turtle-arena-code@0d41639 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0d41639

Browse files
committed
ebx: Disable using Team Arena characters for random team bots
1 parent 7645640 commit 0d41639

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

code/game/g_bot.c

+8
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ Suite 120, Rockville, Maryland 20850 USA.
3636
static int g_numBots;
3737
static char *g_botInfos[MAX_BOTS];
3838

39+
#ifndef TA_DATA // No missionpack team bots
3940
#ifdef MISSIONPACK
4041
static int g_numTeamBots;
4142
static char *g_teamBotInfos[MAX_BOTS];
4243
#endif
44+
#endif
4345

4446

4547
int g_numArenas;
@@ -360,11 +362,13 @@ char *G_SelectRandomBotInfo( int team ) {
360362
int numBots;
361363
char **botInfos;
362364

365+
#ifndef TA_DATA // No missionpack team bots
363366
#ifdef MISSIONPACK
364367
if ( g_gametype.integer >= GT_TEAM ) {
365368
numBots = g_numTeamBots;
366369
botInfos = g_teamBotInfos;
367370
} else
371+
#endif
368372
#endif
369373
{
370374
numBots = g_numBots;
@@ -1184,6 +1188,7 @@ char *G_GetBotInfoByName( const char *name ) {
11841188
return NULL;
11851189
}
11861190

1191+
#ifndef TA_DATA // No missionpack team bots
11871192
#ifdef MISSIONPACK
11881193
/*
11891194
===============
@@ -1316,6 +1321,7 @@ static void G_ParseTeamInfo( const char *filename ) {
13161321
}
13171322
}
13181323
#endif
1324+
#endif // TA_DATA
13191325

13201326
/*
13211327
===============
@@ -1337,8 +1343,10 @@ void G_InitBots( qboolean restart ) {
13371343
#ifndef IOQ3ZTM // MAP_ROTATION
13381344
G_LoadArenas();
13391345
#endif
1346+
#ifndef TA_DATA // No missionpack team bots
13401347
#ifdef MISSIONPACK
13411348
G_ParseTeamInfo( "teaminfo.txt" );
1349+
#endif
13421350
#endif
13431351

13441352
trap_Cvar_Register( &bot_minplayers, "bot_minplayers", "0", CVAR_SERVERINFO );

0 commit comments

Comments
 (0)
0