remove some duplication in parachute use

This commit is contained in:
Chris Forbes
2011-04-29 19:52:36 +12:00
parent b26d2e07e9
commit f84832a24a
3 changed files with 6 additions and 5 deletions

View File

@@ -52,11 +52,10 @@ namespace OpenRA.Mods.RA
droppedAt.Add(self.Location);
var a = cargo.Unload(self);
var rs = a.Trait<RenderSimple>();
var aircraft = self.Trait<IMove>();
self.World.AddFrameEndTask(w => w.Add(
new Parachute(self.Owner, rs.anim.Name,
new Parachute(self.Owner,
Util.CenterOfCell(Util.CellContaining(self.CenterLocation)),
aircraft.Altitude, a)));