From: terencehill Date: Fri, 3 Nov 2017 14:50:32 +0000 (+0100) Subject: When setting a goal as dynamic, delay nearest waypoint finding if it already exists X-Git-Tag: xonotic-v0.8.5~2378^2~27 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9824794b2a85cf7de25093470e605a9bb621f321;p=xonotic%2Fxonotic-data.pk3dir.git When setting a goal as dynamic, delay nearest waypoint finding if it already exists --- diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index d2b073b5c..18c4383a0 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -77,6 +77,8 @@ void navigation_dynamicgoal_init(entity this, bool initially_static) void navigation_dynamicgoal_set(entity this) { this.nearestwaypointtimeout = time; + if (this.nearestwaypoint) + this.nearestwaypointtimeout += 2; } void navigation_dynamicgoal_unset(entity this)