Skip to content
Permalink
Browse files

fix ownership changes of moving flags (#1846)

  • Loading branch information
MDT-Maikel committed Nov 27, 2016
1 parent 88361ab commit 7552fd94f7f73ddd351c7de9ca54ef9c93787fc8
Showing with 3 additions and 0 deletions.
  1. +3 −0 planet/Objects.ocd/Libraries.ocd/Structures.ocd/Flag.ocd/Ownable.ocd/Script.c
@@ -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)
{

0 comments on commit 7552fd9

Please sign in to comment.
You can’t perform that action at this time.