]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
When setting a goal as dynamic, delay nearest waypoint finding if it already exists
authorterencehill <piuntn@gmail.com>
Fri, 3 Nov 2017 14:50:32 +0000 (15:50 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 3 Nov 2017 14:50:32 +0000 (15:50 +0100)
qcsrc/server/bot/default/navigation.qc

index d2b073b5c9037f2cca16593fc467a6ca2e45fa4d..18c4383a0697a594ec47c48fc0ad76fdc2301940 100644 (file)
@@ -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)