From dc57512159414aa8440a384f82aaf163dc47218e Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 9 Aug 2017 16:32:14 +0200 Subject: [PATCH] Print an error message if player can't spawn a waypoint --- qcsrc/server/bot/default/waypoints.qc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index 657933989..185ec0f1f 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -268,6 +268,11 @@ void waypoint_spawn_fromeditor(entity pl) LABEL(add_wp); e = waypoint_spawn(org, org, 0); + if(!e) + { + LOG_INFOF("Couldn't spawn waypoint at %v\n", org); + return; + } waypoint_schedulerelink(e); bprint(strcat("Waypoint spawned at ", vtos(e.origin), "\n")); if(sym) -- 2.39.2