Fix MoveAdjacent activities cancelling queued activities

This commit is contained in:
Gustas
2023-05-20 19:30:15 +03:00
committed by Matthias Mailänder
parent 7c0f6ead3a
commit 02a7ff87db

View File

@@ -91,7 +91,7 @@ namespace OpenRA.Mods.Common.Activities
// Cancel the current path if the activity asks to stop.
if (ShouldStop(self) || noTarget)
Cancel(self);
Cancel(self, true);
else if (!IsCanceling && targetIsValid && ShouldRepath(self, oldTargetLocation))
{
// Target has moved, but is still valid.