From: terencehill Date: Tue, 29 Aug 2017 18:10:45 +0000 (+0200) Subject: Waypoints, change keyword: VERSION -> WAYPOINT_VERSION X-Git-Tag: xonotic-v0.8.5~2378^2~76 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1a2dfe5a1359ffad80ccd3d85a3e947079a78a2d;p=xonotic%2Fxonotic-data.pk3dir.git Waypoints, change keyword: VERSION -> WAYPOINT_VERSION --- diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index f4c56027e..4b7da649c 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -710,8 +710,8 @@ bool waypoint_load_links() { if(substring(s, 0, 2) == "//") { - if(substring(s, 2, 8) == "VERSION ") - ver = stof(substring(s, 10, -1)); + if(substring(s, 2, 17) == "WAYPOINT_VERSION ") + ver = stof(substring(s, 19, -1)); continue; } else @@ -944,7 +944,7 @@ void waypoint_save_links() return; } - fputs(file, strcat("//", "VERSION ", ftos_decimals(WAYPOINT_VERSION, 2), "\n")); + fputs(file, strcat("//", "WAYPOINT_VERSION ", ftos_decimals(WAYPOINT_VERSION, 2), "\n")); int c = 0; IL_EACH(g_waypoints, true, @@ -984,7 +984,7 @@ void waypoint_saveall() // add 3 comments to not break compatibility with older Xonotic versions // (they are read as a waypoint with origin '0 0 0' and flag 0 though) - fputs(file, strcat("//", "VERSION ", ftos_decimals(WAYPOINT_VERSION, 2), "\n")); + fputs(file, strcat("//", "WAYPOINT_VERSION ", ftos_decimals(WAYPOINT_VERSION, 2), "\n")); fputs(file, strcat("//", "\n")); fputs(file, strcat("//", "\n")); @@ -1037,8 +1037,8 @@ float waypoint_loadall() { if(substring(s, 0, 2) == "//") { - if(substring(s, 2, 8) == "VERSION ") - ver = stof(substring(s, 10, -1)); + if(substring(s, 2, 17) == "WAYPOINT_VERSION ") + ver = stof(substring(s, 19, -1)); continue; } else