#117 off-map planes should spawn at cruise altitude

This commit is contained in:
Chris Forbes
2010-03-27 18:07:01 +13:00
parent 17b135926d
commit f6a52f4e50
4 changed files with 5 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ namespace OpenRA.Mods.Cnc
var a = w.CreateActor("C17", startPos, owner);
var cargo = a.traits.Get<Cargo>();
a.traits.Get<Unit>().Facing = 64;
a.traits.Get<Unit>().Altitude = a.Info.Traits.Get<PlaneInfo>().CruiseAltitude;
var newUnit = new Actor(self.World, producee.Name, new int2(0, 0), self.Owner);
cargo.Load(a, newUnit);