From 37809daf3b0bd409f2ee7dbf2e81ecea6c875684 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 13 Jan 2024 16:44:45 +0200 Subject: [PATCH 1/2] 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 From 0c3acdf0669888a8fbd12061a4c6785c878e96f2 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 13 Jan 2024 16:46:54 +0200 Subject: [PATCH 2/2] rollback 8d9120c10b4eb5c9c493119f718a8ea9c1d3e611 --- dlls/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/client.cpp b/dlls/client.cpp index f5f6b373..a7fa78b5 100644 --- a/dlls/client.cpp +++ b/dlls/client.cpp @@ -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 )