From: terencehill Date: Wed, 4 Sep 2019 20:28:04 +0000 (+0200) Subject: Bot AI: clear current route if goalcurrent has been freed; it should avoid occasional... X-Git-Tag: xonotic-v0.8.5~1316 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1bc43b119d45caf6270098e18376de7d7a989493;p=xonotic%2Fxonotic-data.pk3dir.git 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 --- 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)