make cargo unload deploy action queueable

fix line spacing

remove unnecessary null check
This commit is contained in:
tovl
2019-01-12 21:29:54 +01:00
committed by reaperrr
parent da2e56e478
commit 9f419fca34
2 changed files with 11 additions and 3 deletions

View File

@@ -59,6 +59,12 @@ namespace OpenRA.Mods.Common.Activities
if (IsCanceling || cargo.IsEmpty(self))
return NextActivity;
if (!cargo.CanUnload())
{
Cancel(self, true);
return NextActivity;
}
foreach (var inu in notifiers)
inu.Unloading(self);