From: terencehill Date: Thu, 11 Jan 2018 15:02:58 +0000 (+0100) Subject: Don't automatically update outdated Assault waypoint links since all objectives but... X-Git-Tag: xonotic-v0.8.5~2378^2~3^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=653fd81f967218ac6f3165b97ca21d42c5fac883;p=xonotic%2Fxonotic-data.pk3dir.git Don't automatically update outdated Assault waypoint links since all objectives but last one need to be destroyed before saving them --- 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; } }