From 956a369ab737980d2986a108c89469228fb2fcd6 Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Tue, 28 Feb 2012 20:07:45 +0100 Subject: [PATCH] Removed Zombie-GUI-Elements that have not been deleted on player removal --- .../Objects.ocd/HUD.ocd/Controller.ocd/Script.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/planet/Objects.ocd/HUD.ocd/Controller.ocd/Script.c b/planet/Objects.ocd/HUD.ocd/Controller.ocd/Script.c index d5202c701..8eae2f605 100644 --- a/planet/Objects.ocd/HUD.ocd/Controller.ocd/Script.c +++ b/planet/Objects.ocd/HUD.ocd/Controller.ocd/Script.c @@ -442,6 +442,18 @@ public func Destruction() } } + if(hoverhelper) + hoverhelper->RemoveObject(); + if(lockbutton) + lockbutton->RemoveObject(); + + if(backpack) + for(var i=0; iRemoveObject(); + } + if(healthtube) healthtube->RemoveObject(); @@ -462,6 +474,10 @@ public func Destruction() HUDgoal->RemoveObject(); if(deco) deco->RemoveObject(); + + var crew = FindObjects(Find_ID(GUI_CrewSelector), Find_Owner(GetOwner())); + for(var o in crew) + o->RemoveObject(); } public func OnCrewDisabled(object clonk)