hack around some more z-glitches

This commit is contained in:
Chris Forbes
2010-09-17 18:03:29 +12:00
parent a3246866fb
commit e0a4cb4763
3 changed files with 2 additions and 3 deletions

View File

@@ -49,7 +49,6 @@ namespace OpenRA.Mods.RA
return;
const int RangeTolerance = 1; /* how far inside our maximum range we should try to sit */
/* todo: choose the appropriate weapon, when only one works against this target */
var weapon = ChooseWeaponForTarget(Target.FromOrder(order));
if (weapon == null)
return;

View File

@@ -37,7 +37,7 @@ namespace OpenRA.Mods.RA.Render
anims.Add( "turret_{0}".F(i),
new AnimationWithOffset( turretAnim,
() => Combat.GetTurretPosition( self, facing, turret ),
null) { ZOffset = 1 });
null) { ZOffset = 70 });
if (attackInfo.MuzzleFlash)
{

View File

@@ -24,7 +24,7 @@ namespace OpenRA.Mods.RA
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)).WithZOffset(3));
: r.Select(a => a.WithPos(a.Pos - new float2(0, move.Altitude)).WithZOffset(move.Altitude));
return shadowSprites.Concat(flyingSprites);
}