fix ownership changes of moving flags (#1846)

directional-lights
Maikel de Vries 2016-11-28 00:53:48 +01:00
parent 88361ab606
commit 7552fd94f7
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ protected func FxIntMovementCheckStart(object target, proplist effect, int temp)
protected func FxIntMovementCheckTimer(object target, proplist effect)
{
// Remove effect for structures that can't be owned.
if (!this->~CanBeOwner())
return FX_Execute_Kill;
// Check whether the structure has moved.
if (GetX() != effect.x || GetY() != effect.y)
{