Fix up wpedit

This commit is contained in:
ineedbots 2021-05-09 11:43:59 -06:00
parent 1745adbc78
commit ab22dd37cb

View File

@ -446,6 +446,12 @@ DeleteAllWaypoints()
{ {
level.waypoints = []; level.waypoints = [];
level.waypointCount = 0; level.waypointCount = 0;
level.waypointsKDTree = WaypointsToKDTree();
level.waypointsCamp = [];
level.waypointsTube = [];
level.waypointsGren = [];
level.waypointsClay = [];
self iprintln("DelAllWps"); self iprintln("DelAllWps");
} }
@ -617,9 +623,7 @@ destroyOnDeath(hud)
{ {
hud endon("death"); hud endon("death");
self waittill_either("death","disconnect"); self waittill_either("death","disconnect");
hud notify("death");
hud destroy(); hud destroy();
hud = undefined;
} }
textScroll(string) textScroll(string)