Fix MoveAdjacent activities cancelling queued activities
This commit is contained in:
committed by
Matthias Mailänder
parent
7c0f6ead3a
commit
02a7ff87db
@@ -91,7 +91,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
|
|
||||||
// Cancel the current path if the activity asks to stop.
|
// Cancel the current path if the activity asks to stop.
|
||||||
if (ShouldStop(self) || noTarget)
|
if (ShouldStop(self) || noTarget)
|
||||||
Cancel(self);
|
Cancel(self, true);
|
||||||
else if (!IsCanceling && targetIsValid && ShouldRepath(self, oldTargetLocation))
|
else if (!IsCanceling && targetIsValid && ShouldRepath(self, oldTargetLocation))
|
||||||
{
|
{
|
||||||
// Target has moved, but is still valid.
|
// Target has moved, but is still valid.
|
||||||
|
|||||||
Reference in New Issue
Block a user