Make Tick return bool

This commit is contained in:
tovl
2019-05-14 21:13:25 +02:00
committed by teinarss
parent 09c1611239
commit 3790169db9
49 changed files with 328 additions and 318 deletions

View File

@@ -34,10 +34,10 @@ namespace OpenRA.Mods.Common.Activities
IsInterruptible = false;
}
public override Activity Tick(Actor self)
public override bool Tick(Actor self)
{
if (disableable != null && disableable.IsTraitDisabled)
return this;
return false;
var pos = length > 1
? WPos.Lerp(start, end, ticks, length - 1)
@@ -45,9 +45,9 @@ namespace OpenRA.Mods.Common.Activities
positionable.SetVisualPosition(self, pos);
if (++ticks >= length)
return NextActivity;
return true;
return this;
return false;
}
public override IEnumerable<Target> GetTargets(Actor self)