From 1bc43b119d45caf6270098e18376de7d7a989493 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 4 Sep 2019 22:28:04 +0200 Subject: [PATCH] Bot AI: clear current route if goalcurrent has been freed; it should avoid occasional "checkpvs: can not check free entity" warnings generated by the bunnyhop code --- qcsrc/server/bot/default/havocbot/havocbot.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc index 6f257a9ca..d055fc962 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -89,6 +89,9 @@ void havocbot_ai(entity this) bot_strategytoken_taken = true; } + if (this.goalcurrent && wasfreed(this.goalcurrent)) + navigation_clearroute(this); + if(IS_DEAD(this) || STAT(FROZEN, this)) { if (this.goalcurrent) -- 2.39.2