Remove CellBounds from BuildableTerrainLayer and SmudgeLayer

This commit is contained in:
Paul Chote
2014-05-17 01:00:12 +12:00
parent 997216aef0
commit c5a13d4e65
2 changed files with 2 additions and 4 deletions

View File

@@ -59,12 +59,11 @@ namespace OpenRA.Mods.RA
public void Render(WorldRenderer wr)
{
var cliprect = wr.Viewport.CellBounds;
var pal = wr.Palette("terrain");
foreach (var kv in tiles)
{
if (!cliprect.Contains(kv.Key.X, kv.Key.Y))
if (!wr.Viewport.VisibleCells.Contains(kv.Key))
continue;
if (wr.world.ShroudObscures(kv.Key))