]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Respect box waypoint size
authorterencehill <piuntn@gmail.com>
Sat, 18 Feb 2017 23:22:53 +0000 (00:22 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 18 Feb 2017 23:22:53 +0000 (00:22 +0100)
qcsrc/server/bot/default/navigation.qc

index 2cfc6d33a83189009a866fbd8e7a690636e7eab4..61c628542c47227f4b8e88ff8d570441a9d29dec 100644 (file)
@@ -989,7 +989,7 @@ void navigation_poptouchedgoals(entity this)
        {
                vector gc_min = this.goalcurrent.absmin;
                vector gc_max = this.goalcurrent.absmax;
-               if(this.goalcurrent.classname == "waypoint")
+               if(this.goalcurrent.classname == "waypoint" && !this.goalcurrent.wpisbox)
                {
                        gc_min = this.goalcurrent.origin - '1 1 1' * 12;
                        gc_max = this.goalcurrent.origin + '1 1 1' * 12;