Unload passengers on death

This commit is contained in:
teees
2015-11-20 09:48:09 +01:00
parent 7c31f6e18e
commit b7a3a446e1
5 changed files with 33 additions and 0 deletions

View File

@@ -273,6 +273,11 @@ namespace OpenRA.Mods.Common.Activities
// Run inner activity/InsideTick
inner = inner == this ? InsideTick(self) : Util.RunActivity(self, inner);
// If we are finished, move on to next activity
if (inner == null && nextState == State.Done)
return NextActivity;
return this;
}
}