drop redundant virtuals from WithMuzzleFlash

This commit is contained in:
Chris Forbes
2011-06-25 18:12:05 +12:00
parent 6da5724af8
commit a3601b1214

View File

@@ -57,14 +57,14 @@ namespace OpenRA.Mods.RA.Render
mf.Animation.PlayThen("muzzle", () => isShowing = false); mf.Animation.PlayThen("muzzle", () => isShowing = false);
} }
public virtual IEnumerable<Renderable> Render(Actor self) public IEnumerable<Renderable> Render(Actor self)
{ {
foreach (var a in muzzleFlashes.Values) foreach (var a in muzzleFlashes.Values)
if (a.DisableFunc == null || !a.DisableFunc()) if (a.DisableFunc == null || !a.DisableFunc())
yield return a.Image(self, "effect"); yield return a.Image(self, "effect");
} }
public virtual void Tick(Actor self) public void Tick(Actor self)
{ {
foreach (var a in muzzleFlashes.Values) foreach (var a in muzzleFlashes.Values)
a.Animation.Tick(); a.Animation.Tick();