Merge pull request #8 from YGGverse/bot10-crash-test

Bot10 crash test
This commit is contained in:
d47081 2024-01-13 17:21:02 +02:00 committed by GitHub
commit f8f20374ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1194,7 +1194,7 @@ void StartFrame( void )
// have to delay here or engine gives "Tried to write to
// uninitialized sizebuf_t" error and crashes...
pause_time = gpGlobals->time + 1.0;
pause_time = gpGlobals->time + 1;
break;
}
else if( strcmp( cmd, "botskill" ) == 0 )
@ -1374,6 +1374,9 @@ void StartFrame( void )
{
if( !bot_respawn[i].is_used && bot_respawn[i].state == BOT_IDLE)
{
bot_respawn[i].state = BOT_IS_RESPAWNING;
bot_respawn[i].is_used = FALSE; // free up this slot
BotCreate( bot_respawn[i].skin, bot_respawn[i].name, bot_respawn[i].skill );
respawn_time = gpGlobals->time + 1.0; // set next respawn time