]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't automatically update outdated Assault waypoint links since all objectives but...
authorterencehill <piuntn@gmail.com>
Thu, 11 Jan 2018 15:02:58 +0000 (16:02 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 11 Jan 2018 15:02:58 +0000 (16:02 +0100)
qcsrc/server/bot/default/waypoints.qc

index ce98e8d8c854f471dee979da90c4db344332450f..773522dd7c7814c28f656df7cc1f8498f51b6886 100644 (file)
@@ -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;
                        }
                }