Fix crate drop aircraft spawn height.

This commit is contained in:
Paul Chote
2015-08-01 20:01:45 +01:00
parent 583b4f92b6
commit 180f6e83d4

View File

@@ -58,10 +58,10 @@ namespace OpenRA.Mods.Common.Traits
public class CrateSpawner : ITick public class CrateSpawner : ITick
{ {
readonly CrateSpawnerInfo info;
readonly Actor self;
int crates = 0; int crates = 0;
int ticks = 0; int ticks = 0;
CrateSpawnerInfo info;
Actor self;
public CrateSpawner(CrateSpawnerInfo info, Actor self) public CrateSpawner(CrateSpawnerInfo info, Actor self)
{ {
@@ -113,7 +113,7 @@ namespace OpenRA.Mods.Common.Traits
var plane = w.CreateActor(info.DeliveryAircraft, new TypeDictionary var plane = w.CreateActor(info.DeliveryAircraft, new TypeDictionary
{ {
new CenterPositionInit(startEdge + new WVec(0, 0, altitude)), new CenterPositionInit(startEdge),
new OwnerInit(self.Owner), new OwnerInit(self.Owner),
new FacingInit(dropFacing), new FacingInit(dropFacing),
}); });