Remove CellBounds from BuildableTerrainLayer and SmudgeLayer
This commit is contained in:
@@ -59,12 +59,11 @@ namespace OpenRA.Mods.RA
|
|||||||
|
|
||||||
public void Render(WorldRenderer wr)
|
public void Render(WorldRenderer wr)
|
||||||
{
|
{
|
||||||
var cliprect = wr.Viewport.CellBounds;
|
|
||||||
var pal = wr.Palette("terrain");
|
var pal = wr.Palette("terrain");
|
||||||
|
|
||||||
foreach (var kv in tiles)
|
foreach (var kv in tiles)
|
||||||
{
|
{
|
||||||
if (!cliprect.Contains(kv.Key.X, kv.Key.Y))
|
if (!wr.Viewport.VisibleCells.Contains(kv.Key))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (wr.world.ShroudObscures(kv.Key))
|
if (wr.world.ShroudObscures(kv.Key))
|
||||||
|
|||||||
@@ -120,12 +120,11 @@ namespace OpenRA.Mods.RA
|
|||||||
|
|
||||||
public void Render(WorldRenderer wr)
|
public void Render(WorldRenderer wr)
|
||||||
{
|
{
|
||||||
var cliprect = wr.Viewport.CellBounds;
|
|
||||||
var pal = wr.Palette("terrain");
|
var pal = wr.Palette("terrain");
|
||||||
|
|
||||||
foreach (var kv in tiles)
|
foreach (var kv in tiles)
|
||||||
{
|
{
|
||||||
if (!cliprect.Contains(kv.Key.X, kv.Key.Y))
|
if (!wr.Viewport.VisibleCells.Contains(kv.Key))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (world.ShroudObscures(kv.Key))
|
if (world.ShroudObscures(kv.Key))
|
||||||
|
|||||||
Reference in New Issue
Block a user