From: terencehill Date: Mon, 17 Jun 2019 19:23:09 +0000 (+0200) Subject: Clear think function after a waypoint has been relinked X-Git-Tag: xonotic-v0.8.5~1356^2~37 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=415dfe3b24b639c9287e9852224f6d1423ecadc3;p=xonotic%2Fxonotic-data.pk3dir.git Clear think function after a waypoint has been relinked --- diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index c36398163f..6c29f7bf17 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -868,6 +868,9 @@ void waypoint_think(entity this) navigation_testtracewalk = 0; this.wplinked = true; this.dphitcontentsmask = dphitcontentsmask_save; + + setthink(this, func_null); + this.nextthink = 0; } void waypoint_clearlinks(entity wp)