Force helicopters to land before transforming.

This commit is contained in:
Paul Chote
2015-08-05 08:59:32 +01:00
parent 3ed40090f7
commit 1aa5852a5b

View File

@@ -112,6 +112,9 @@ namespace OpenRA.Mods.Common.Traits
if (self.HasTrait<IFacing>())
self.QueueActivity(new Turn(self, info.Facing));
if (self.HasTrait<Helicopter>())
self.QueueActivity(new HeliLand(self, true));
foreach (var nt in self.TraitsImplementing<INotifyTransform>())
nt.BeforeTransform(self);