Let parachute cargo render themselves.

This allows for tanks and other multi-sprite
actors to render correctly while dropping.
This commit is contained in:
Paul Chote
2013-02-24 14:00:25 +13:00
parent 0703f3f164
commit d6fcaafd78
3 changed files with 17 additions and 26 deletions

View File

@@ -55,11 +55,9 @@ namespace OpenRA.Mods.RA
var aircraft = self.Trait<IMove>();
self.World.AddFrameEndTask(w => w.Add(
new Parachute(
self.Owner,
new Parachute(a,
Util.CenterOfCell(self.CenterLocation.ToCPos()),
aircraft.Altitude, a
)
aircraft.Altitude)
));
Sound.Play(info.ChuteSound, self.CenterLocation);