don't ignore bools

This commit is contained in:
Matthias Mailänder
2013-11-02 11:50:36 +01:00
parent 55b848f071
commit 17e15e1f3e

View File

@@ -38,6 +38,8 @@ namespace OpenRA.Mods.RA
return; return;
var cp = self.CenterPosition; var cp = self.CenterPosition;
if ((cp.Z > 0 && !info.EjectInAir) || (cp.Z == 0 && !info.EjectOnGround))
return;
var pilot = self.World.CreateActor(false, info.PilotActor.ToLowerInvariant(), var pilot = self.World.CreateActor(false, info.PilotActor.ToLowerInvariant(),
new TypeDictionary { new OwnerInit(self.Owner), new LocationInit(self.Location) }); new TypeDictionary { new OwnerInit(self.Owner), new LocationInit(self.Location) });