From 664f01f8fe1b7042a422144eac69f8ad9c883c44 Mon Sep 17 00:00:00 2001 From: mand1nga Date: Mon, 29 Aug 2011 12:11:48 -0300 Subject: [PATCH] Don't invalidate the whole links cache if some waypoints can't be found --- qcsrc/server/bot/waypoints.qc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/qcsrc/server/bot/waypoints.qc b/qcsrc/server/bot/waypoints.qc index 076e96968..c48545e5a 100644 --- a/qcsrc/server/bot/waypoints.qc +++ b/qcsrc/server/bot/waypoints.qc @@ -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; -- 2.39.2