From 720813144794941ed32cf0fb4661f4aa1ec3e1aa Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 13 Jan 2018 22:02:16 +0100 Subject: [PATCH] Fix very minor issues --- qcsrc/server/bot/default/waypoints.qc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index 773522dd7..856a75745 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -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) -- 2.39.2