Remove obsolete IRenderAsTerrain.

This removes the technical limitation preventing
FrozenUnderFog on bridges.
This commit is contained in:
Paul Chote
2013-08-15 18:11:04 +12:00
parent 7278739e45
commit b6a033eef5
3 changed files with 3 additions and 8 deletions

View File

@@ -120,10 +120,6 @@ namespace OpenRA.Graphics
Game.Renderer.EnableScissor(bounds.Left, bounds.Top, bounds.Width, bounds.Height);
terrainRenderer.Draw(this, Game.viewport);
foreach (var a in world.traitDict.ActorsWithTraitMultiple<IRenderAsTerrain>(world))
foreach (var r in a.Trait.RenderAsTerrain(this, a.Actor))
r.Render(this);
Game.Renderer.Flush();
for (var i = 0; i < renderables.Count; i++)