Pause actor movement between cells when Mobile is disabled.
This commit is contained in:
committed by
Oliver Brakmann
parent
c8f05e90dc
commit
83212b100e
@@ -386,6 +386,9 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
public override Activity Tick(Actor self)
|
||||
{
|
||||
if (Move.mobile.IsTraitDisabled)
|
||||
return this;
|
||||
|
||||
var ret = InnerTick(self, Move.mobile);
|
||||
Move.mobile.IsMoving = ret is MovePart;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user