]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Clear think function after a waypoint has been relinked
authorterencehill <piuntn@gmail.com>
Mon, 17 Jun 2019 19:23:09 +0000 (21:23 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 17 Jun 2019 19:23:09 +0000 (21:23 +0200)
qcsrc/server/bot/default/waypoints.qc

index c36398163f9d0434447d2d50b3f1c265145a1f55..6c29f7bf177757a18393dae14334a2860defe104 100644 (file)
@@ -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)