#2160 fixed - RenderCargo support for relative altitude

This commit is contained in:
Chris Forbes
2012-05-22 19:42:51 +12:00
parent e9656795a2
commit ff32864b47
2 changed files with 12 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ namespace OpenRA.Mods.RA.Render
var shadowSprites = r.Select(a => a.WithPalette("shadow"));
var flyingSprites = (move.Altitude <= 0) ? r
: r.Select(a => a.WithPos(a.Pos - new float2(0, move.Altitude + visualOffset)).WithZOffset(move.Altitude));
: r.Select(a => a.WithPos(a.Pos - new float2(0, move.Altitude + visualOffset)).WithZOffset(move.Altitude + a.ZOffset));
return shadowSprites.Concat(flyingSprites);
}