Fixed loading waypoints in editor

This commit is contained in:
ineed bots 2022-03-18 21:17:18 -06:00
parent 8dcd8b1c9e
commit 5e7eb2fc17

View File

@ -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();