forked from Mirrors/openclonk
ExtraSlot works for non-items too
parent
1b5223833a
commit
a1a76473d6
|
@ -119,8 +119,6 @@ public func SetContainer(object c)
|
|||
if(container == c) return;
|
||||
|
||||
container = c;
|
||||
var clonk = container->Contained();
|
||||
SetOwner(clonk->GetOwner());
|
||||
container->~SetHUDObject(this);
|
||||
|
||||
Update();
|
||||
|
|
|
@ -274,8 +274,8 @@ public func SetObject(object obj, int type, int pos, int hot)
|
|||
|
||||
SetName(Format("$TxtSelect$",myobject->GetName()));
|
||||
|
||||
if(actiontype == ACTIONTYPE_INVENTORY)
|
||||
{
|
||||
//if(actiontype == ACTIONTYPE_INVENTORY)
|
||||
//{
|
||||
// create an effect which monitors whether the object is removed
|
||||
AddEffect("IntRemoveGuard",myobject,1,0,this);
|
||||
|
||||
|
@ -293,7 +293,7 @@ public func SetObject(object obj, int type, int pos, int hot)
|
|||
{
|
||||
subselector->RemoveObject();
|
||||
}
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
ShowHotkey();
|
||||
|
|
Loading…
Reference in New Issue