From: Rudolf Polzer Date: Wed, 23 Jan 2013 13:38:19 +0000 (+0100) Subject: fix a waypoint loading issue X-Git-Tag: xonotic-v0.7.0~119 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a142a0db79432d7f621e4f20eaee580ca5f3793e;p=xonotic%2Fxonotic-data.pk3dir.git fix a waypoint loading issue --- diff --git a/qcsrc/server/bot/waypoints.qc b/qcsrc/server/bot/waypoints.qc index 0766ab046..8e9ae6b91 100644 --- a/qcsrc/server/bot/waypoints.qc +++ b/qcsrc/server/bot/waypoints.qc @@ -390,7 +390,7 @@ float waypoint_load_links() wp_to_pos = stov(argv(1)); // Search "from" waypoint - if(wp_from && wp_from.origin!=wp_from_pos) + if(!wp_from || wp_from.origin!=wp_from_pos) { wp_from = findradius(wp_from_pos, 1); found = FALSE; @@ -486,7 +486,7 @@ void waypoint_load_links_hardwired() wp_to_pos = stov(argv(1)); // Search "from" waypoint - if(wp_from && wp_from.origin!=wp_from_pos) + if(!wp_from || wp_from.origin!=wp_from_pos) { wp_from = findradius(wp_from_pos, 5); found = FALSE;