Render the terrain geometry over all visible terrain.

This commit is contained in:
Paul Chote
2015-07-05 14:52:38 +01:00
parent f05b71ada2
commit 78838c715a

View File

@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Traits
var colors = wr.World.TileSet.HeightDebugColors; var colors = wr.World.TileSet.HeightDebugColors;
var mouseCell = wr.Viewport.ViewToWorld(Viewport.LastMousePos).ToMPos(wr.World.Map); var mouseCell = wr.Viewport.ViewToWorld(Viewport.LastMousePos).ToMPos(wr.World.Map);
foreach (var uv in wr.Viewport.VisibleCellsInsideBounds.MapCoords) foreach (var uv in wr.Viewport.AllVisibleCells.MapCoords)
{ {
var height = (int)map.MapHeight.Value[uv]; var height = (int)map.MapHeight.Value[uv];
var tile = map.MapTiles.Value[uv]; var tile = map.MapTiles.Value[uv];