forked from Mirrors/openclonk
fix ownership changes of moving flags (#1846)
parent
88361ab606
commit
7552fd94f7
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue