Relax screen clipping bounds.

Fixes missing tiles in TS.
This commit is contained in:
Paul Chote
2015-06-07 16:24:47 +01:00
parent d21b63ca04
commit 486bf14669
2 changed files with 16 additions and 7 deletions

View File

@@ -95,9 +95,8 @@ namespace OpenRA.Graphics
var cells = viewport.VisibleCells;
// Only draw the rows that are visible.
// VisibleCells is clamped to the map, so additional checks are unnecessary
var firstRow = cells.TopLeft.ToMPos(map).V;
var lastRow = cells.BottomRight.ToMPos(map).V + 1;
var firstRow = cells.MapCoords.TopLeft.V;
var lastRow = Math.Min(cells.MapCoords.BottomRight.V + 1, map.MapSize.Y);
Game.Renderer.Flush();