]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Very small cleanup + comment
authorterencehill <piuntn@gmail.com>
Sat, 15 Apr 2017 14:48:01 +0000 (16:48 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 15 Apr 2017 14:48:01 +0000 (16:48 +0200)
qcsrc/server/bot/default/bot.qc
qcsrc/server/bot/default/waypoints.qc
qcsrc/server/bot/default/waypoints.qh

index bcdc32e8d5e274154590f33cc290c859c7d1adab..3fa56d942b3bb2b15e1a2ede11eca9516e36c5d3 100644 (file)
@@ -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)
index a4abe9b2a2d2c05c982ce5c4ea15411428accfef..a98a04a376a77385f5df2acb5109f125d0e95fbb 100644 (file)
@@ -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;
index 8cd76d7f5d5dd4521ce519f1c34de1bd8ef11f8b..5a976d2c3bad823f8476a2440a7302bfe51a9a37 100644 (file)
@@ -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);