From 7f52b0bded526761c2f60e1f4a80a299ffb1f347 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 15 Apr 2017 16:48:01 +0200 Subject: [PATCH] Very small cleanup + comment --- qcsrc/server/bot/default/bot.qc | 2 +- qcsrc/server/bot/default/waypoints.qc | 2 +- qcsrc/server/bot/default/waypoints.qh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index bcdc32e8d..3fa56d942 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -728,7 +728,7 @@ void bot_serverframe() botframe_spawnedwaypoints = true; waypoint_loadall(); if(!waypoint_load_links()) - waypoint_schedulerelinkall(); + waypoint_schedulerelinkall(); // link all the autogenerated waypoints (teleporters) } if (bot_list) diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index a4abe9b2a..a98a04a37 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -580,7 +580,7 @@ void waypoint_schedulerelinkall() } // Load waypoint links from file -float waypoint_load_links() +bool waypoint_load_links() { string filename, s; float file, tokens, c = 0, found; diff --git a/qcsrc/server/bot/default/waypoints.qh b/qcsrc/server/bot/default/waypoints.qh index 8cd76d7f5..5a976d2c3 100644 --- a/qcsrc/server/bot/default/waypoints.qh +++ b/qcsrc/server/bot/default/waypoints.qh @@ -50,7 +50,7 @@ void waypoint_spawnforteleporter_v(entity e, vector org, vector destination, flo void botframe_showwaypointlinks(); float waypoint_loadall(); -float waypoint_load_links(); +bool waypoint_load_links(); void waypoint_spawn_fromeditor(entity pl); entity waypoint_spawn(vector m1, vector m2, float f); -- 2.39.2