Allow cancelling an activity without aborting the entire queue
This commit is contained in:
committed by
Paul Chote
parent
3111b2cf9b
commit
f9951f76ca
@@ -46,12 +46,12 @@ namespace OpenRA.Mods.Common.Activities
|
||||
return this;
|
||||
}
|
||||
|
||||
public override bool Cancel(Actor self)
|
||||
public override bool Cancel(Actor self, bool keepQueue = false)
|
||||
{
|
||||
if (!IsCanceled && inner != null && !inner.Cancel(self))
|
||||
return false;
|
||||
|
||||
return base.Cancel(self);
|
||||
return base.Cancel(self, keepQueue);
|
||||
}
|
||||
|
||||
public override IEnumerable<Target> GetTargets(Actor self)
|
||||
|
||||
Reference in New Issue
Block a user