@@ -580,6 +580,7 @@ static void G_AddBot( const char *name, float skill, const char *team, int delay
|
||||
botinfo = G_GetBotInfoByName( name );
|
||||
if ( !botinfo ) {
|
||||
G_Printf( S_COLOR_RED "Error: Bot '%s' not defined\n", name );
|
||||
trap_BotFreeClient( clientNum );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -651,6 +652,7 @@ static void G_AddBot( const char *name, float skill, const char *team, int delay
|
||||
s = Info_ValueForKey(botinfo, "aifile");
|
||||
if (!*s ) {
|
||||
trap_Print( S_COLOR_RED "Error: bot has no aifile specified\n" );
|
||||
trap_BotFreeClient( clientNum );
|
||||
return;
|
||||
}
|
||||
Info_SetValueForKey( userinfo, "characterfile", s );
|
||||
|
Reference in New Issue
Block a user