mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
parent
27ddba9c2e
commit
68a616c7f1
1 changed files with 2 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue