Replaced Canceled state with Canceling state.
This commit is contained in:
@@ -61,7 +61,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
if (cargo != carryall.Carryable)
|
||||
return NextActivity;
|
||||
|
||||
if (cargo.IsDead || IsCanceled || carryable.IsTraitDisabled || !cargo.AppearsFriendlyTo(self))
|
||||
if (cargo.IsDead || IsCanceling || carryable.IsTraitDisabled || !cargo.AppearsFriendlyTo(self))
|
||||
{
|
||||
carryall.UnreserveCarryable(self);
|
||||
return NextActivity;
|
||||
@@ -161,8 +161,8 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
public override bool Cancel(Actor self, bool keepQueue = false)
|
||||
{
|
||||
if (!IsCanceled && innerActivity != null && !innerActivity.Cancel(self))
|
||||
return false;
|
||||
if (!IsCanceling && innerActivity != null)
|
||||
innerActivity.Cancel(self);
|
||||
|
||||
return base.Cancel(self, keepQueue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user