Fix turn disabling mobile.IsMoving when setIsMoving is false.
This commit is contained in:
committed by
Oliver Brakmann
parent
5995915281
commit
c8f05e90dc
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user