From 5e7eb2fc17a9deb66316ba3a101aa9f005bbdcfb Mon Sep 17 00:00:00 2001 From: ineed bots Date: Fri, 18 Mar 2022 21:17:18 -0600 Subject: [PATCH] Fixed loading waypoints in editor --- raw/maps/mp/bots/_wp_editor.gsc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/raw/maps/mp/bots/_wp_editor.gsc b/raw/maps/mp/bots/_wp_editor.gsc index ad1a90a..440f641 100644 --- a/raw/maps/mp/bots/_wp_editor.gsc +++ b/raw/maps/mp/bots/_wp_editor.gsc @@ -55,7 +55,10 @@ init() setDvar( "player_sustainAmmo", 1 ); - level.waypoints = []; + + if ( !isDefined( level.waypoints ) ) + level.waypoints = []; + level.waypointCount = 0; level waittill( "connected", player ); @@ -580,7 +583,7 @@ watchSaveWaypointsCommand() LoadWaypoints() { - self DeleteAllWaypoints(); + // self DeleteAllWaypoints(); self iPrintlnBold( "Loading WPS..." ); load_waypoints();