Merge pull request #3668 from pchote/more-polish

Polish fixes for muzzle flashes and cash ticks.
This commit is contained in:
Matthias Mailänder
2013-08-11 00:48:27 -07:00
2 changed files with 5 additions and 1 deletions

View File

@@ -44,6 +44,9 @@ namespace OpenRA.Mods.RA.Effects
public IEnumerable<IRenderable> Render(WorldRenderer wr)
{
if (wr.world.FogObscures(pos.ToCPos()))
yield break;
yield return new TextRenderable(font, pos, 0, color, text);
}
}

View File

@@ -58,7 +58,8 @@ namespace OpenRA.Mods.RA.Render
anims.Add(barrel,
new AnimationWithOffset(muzzleFlash,
() => arm.MuzzleOffset(self, barrel),
() => !visible[barrel]));
() => !visible[barrel],
p => WithTurret.ZOffsetFromCenter(self, p, 2)));
}
}