From 653fd81f967218ac6f3165b97ca21d42c5fac883 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 11 Jan 2018 16:02:58 +0100 Subject: [PATCH] Don't automatically update outdated Assault waypoint links since all objectives but last one need to be destroyed before saving them --- qcsrc/server/bot/default/waypoints.qc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index ce98e8d8c..773522dd7 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -724,7 +724,18 @@ bool waypoint_load_links() else { if(ver < WAYPOINT_VERSION) - return false; + { + LOG_TRACE("waypoint links for this map are outdated."); + if (g_assault) + { + LOG_TRACE("Assault waypoint links need to be manually updated in the editor"); + } + else + { + LOG_TRACE("automatically updating..."); + return false; + } + } parse_comments = false; } } @@ -1073,7 +1084,10 @@ float waypoint_loadall() else { if(floor(ver) < floor(WAYPOINT_VERSION)) + { LOG_TRACE("waypoints for this map are outdated"); + LOG_TRACE("please update them in the editor"); + } parse_comments = false; } } -- 2.39.2