add missed bot_respawn meta reset

This commit is contained in:
ghost 2024-01-13 16:44:45 +02:00
parent 09c481fb8e
commit 37809daf3b

View File

@ -1374,6 +1374,9 @@ void StartFrame( void )
{ {
if( !bot_respawn[i].is_used && bot_respawn[i].state == BOT_IDLE) 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 ); BotCreate( bot_respawn[i].skin, bot_respawn[i].name, bot_respawn[i].skill );
respawn_time = gpGlobals->time + 1.0; // set next respawn time respawn_time = gpGlobals->time + 1.0; // set next respawn time