From 415dfe3b24b639c9287e9852224f6d1423ecadc3 Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 17 Jun 2019 21:23:09 +0200 Subject: [PATCH] Clear think function after a waypoint has been relinked --- qcsrc/server/bot/default/waypoints.qc | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.39.2