]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix some small issues
authorterencehill <piuntn@gmail.com>
Mon, 27 Mar 2017 22:10:52 +0000 (00:10 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 27 Mar 2017 22:10:52 +0000 (00:10 +0200)
qcsrc/server/bot/default/waypoints.qc

index b10709c9e8942ee22c5adeb46928e5e7b4fcedfa..ef89e4dbd8a285304461ba644247108101d028f7 100644 (file)
@@ -188,7 +188,7 @@ void waypoint_think(entity this)
        //dprint("waypoint_think wpisbox = ", ftos(this.wpisbox), "\n");
        sm1 = this.origin + this.mins;
        sm2 = this.origin + this.maxs;
-       IL_EACH(g_waypoints, true,
+       IL_EACH(g_waypoints, this != it,
        {
                if (boxesoverlap(this.absmin, this.absmax, it.absmin, it.absmax))
                {
@@ -384,7 +384,7 @@ float waypoint_load_links()
 
                        if(!found)
                        {
-                               LOG_TRACE("waypoint_load_links: couldn't find 'from' waypoint at ", vtos(wp_from.origin));
+                               LOG_TRACE("waypoint_load_links: couldn't find 'from' waypoint at ", vtos(wp_from_pos));
                                continue;
                        }
 
@@ -406,7 +406,7 @@ float waypoint_load_links()
 
                if(!found)
                {
-                       LOG_TRACE("waypoint_load_links: couldn't find 'to' waypoint at ", vtos(wp_to.origin));
+                       LOG_TRACE("waypoint_load_links: couldn't find 'to' waypoint at ", vtos(wp_to_pos));
                        continue;
                }