]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix very minor issues
authorterencehill <piuntn@gmail.com>
Sat, 13 Jan 2018 21:02:16 +0000 (22:02 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 13 Jan 2018 21:02:16 +0000 (22:02 +0100)
qcsrc/server/bot/default/waypoints.qc

index 773522dd7c7814c28f656df7cc1f8498f51b6886..856a7574554482d55998a41294614a3d815b7d9b 100644 (file)
@@ -702,9 +702,7 @@ bool waypoint_load_links()
 
        if (file < 0)
        {
-               LOG_TRACE("waypoint links load from ");
-               LOG_TRACE(filename);
-               LOG_TRACE(" failed");
+               LOG_TRACE("waypoint links load from ", filename, " failed");
                return false;
        }
 
@@ -733,6 +731,7 @@ bool waypoint_load_links()
                                        else
                                        {
                                                LOG_TRACE("automatically updating...");
+                                               fclose(file);
                                                return false;
                                        }
                                }
@@ -912,8 +911,8 @@ void waypoint_load_or_remove_links_hardwired(bool removal_mode)
 
        fclose(file);
 
-       if(!removal_mode)
-               LOG_TRACE("loaded ", ftos(c), " waypoint links from maps/", mapname, ".waypoints.hardwired");
+       LOG_TRACE(((removal_mode) ? "unloaded " : "loaded "),
+               ftos(c), " waypoint links from maps/", mapname, ".waypoints.hardwired");
 }
 
 entity waypoint_get_link(entity w, float i)