Convert Parachute to world coords.

This commit is contained in:
Paul Chote
2013-05-14 21:53:26 +12:00
parent fe716e76a7
commit 79cbb7f729
5 changed files with 28 additions and 40 deletions

View File

@@ -52,14 +52,7 @@ namespace OpenRA.Mods.RA
droppedAt.Add(self.Location);
var a = cargo.Unload(self);
var aircraft = self.Trait<IMove>();
self.World.AddFrameEndTask(w => w.Add(
new Parachute(a,
Util.CenterOfCell(self.CenterLocation.ToCPos()),
aircraft.Altitude)
));
self.World.AddFrameEndTask(w => w.Add(new Parachute(a, self.CenterPosition)));
Sound.Play(info.ChuteSound, self.CenterLocation);
}
}