From 37809daf3b0bd409f2ee7dbf2e81ecea6c875684 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 13 Jan 2024 16:44:45 +0200 Subject: [PATCH] add missed bot_respawn meta reset --- dlls/client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/client.cpp b/dlls/client.cpp index bf28476d..f5f6b373 100644 --- a/dlls/client.cpp +++ b/dlls/client.cpp @@ -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