add callback to object when it gets controlled by tele glove

stable-6.1
Maikel de Vries 2015-02-25 18:44:23 +01:00
parent c66833e2db
commit e5e5665294
1 changed files with 2 additions and 1 deletions

View File

@ -197,10 +197,11 @@ public func ControlUseHolding(object clonk, ix, iy)
public func GainedTargetObject(object target)
{
if(!GetEffect("TeleGloveWeight", target))
if (!GetEffect("TeleGloveWeight", target))
{
//Who holds the object? For killtracing
target->SetController(Contained()->GetController());
target->~OnTeleGloveControl(this);
AddEffect("TeleGloveWeight", target, 1, 0, target);
return 1;
}