Fix turn disabling mobile.IsMoving when setIsMoving is false.

This commit is contained in:
Paul Chote
2019-01-31 20:28:15 +00:00
committed by Oliver Brakmann
parent 5995915281
commit c8f05e90dc

View File

@@ -61,7 +61,7 @@ namespace OpenRA.Mods.Common.Activities
protected override void OnLastRun(Actor self) protected override void OnLastRun(Actor self)
{ {
// If Mobile.IsMoving was set to 'true' earlier, we want to reset it to 'false' before the next tick. // If Mobile.IsMoving was set to 'true' earlier, we want to reset it to 'false' before the next tick.
if (mobile != null && mobile.IsMoving) if (setIsMoving && mobile != null && mobile.IsMoving)
mobile.IsMoving = false; mobile.IsMoving = false;
} }
} }