From: terencehill Date: Sat, 13 Jan 2018 21:02:16 +0000 (+0100) Subject: Fix very minor issues X-Git-Tag: xonotic-v0.8.5~2378^2~3^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=720813144794941ed32cf0fb4661f4aa1ec3e1aa;p=xonotic%2Fxonotic-data.pk3dir.git Fix very minor issues --- 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)