Fix up wpedit

This commit is contained in:
ineedbots 2021-05-09 11:44:56 -06:00
parent 20bc803498
commit 23dbbb9439

View File

@ -665,6 +665,13 @@ DeleteAllWaypoints()
{ {
level.waypoints = []; level.waypoints = [];
level.waypointCount = 0; level.waypointCount = 0;
level.waypointsKDTree = WaypointsToKDTree();
level.waypointsCamp = [];
level.waypointsTube = [];
level.waypointsGren = [];
level.waypointsClay = [];
level.waypointsJav = [];
self iprintln("DelAllWps"); self iprintln("DelAllWps");
} }
@ -709,9 +716,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;
} }
initHudElem(txt, xl, yl) initHudElem(txt, xl, yl)