]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't invalidate the whole links cache if some waypoints can't be found
authormand1nga <mand1nga@xonotic.org>
Mon, 29 Aug 2011 15:11:48 +0000 (12:11 -0300)
committermand1nga <mand1nga@xonotic.org>
Mon, 29 Aug 2011 15:11:48 +0000 (12:11 -0300)
qcsrc/server/bot/waypoints.qc

index 076e969685e2c30fde561aeaddec6eab7e090420..c48545e5aa2c922e60a7503b6c4103a4f8842221 100644 (file)
@@ -411,10 +411,10 @@ float waypoint_load_links()
 
                        if(!found)
                        {
-                               // can't find that waypoint
-                               fclose(file);
-                               return FALSE;
+                               dprint("waypoint_load_links: couldn't find 'from' waypoint at ", vtos(wp_from.origin),"\n");
+                               continue;
                        }
+
                }
 
                // Search "to" waypoint
@@ -433,9 +433,8 @@ float waypoint_load_links()
 
                if(!found)
                {
-                       // can't find that waypoint
-                       fclose(file);
-                       return FALSE;
+                       dprint("waypoint_load_links: couldn't find 'to' waypoint at ", vtos(wp_to.origin),"\n");
+                       continue;
                }
 
                ++c;