Merge pull request #3110 from ScottNZ/renderer

Fixes #3104
This commit is contained in:
Paul Chote
2013-04-19 01:00:27 -07:00

View File

@@ -69,9 +69,6 @@ namespace OpenRA.Graphics
if (lastRow < 0 || firstRow > map.Bounds.Height)
return;
if (firstRow < 0) firstRow = 0;
if (lastRow > map.Bounds.Height) lastRow = map.Bounds.Height;
if (world.VisibleBounds.HasValue)
{
var r = world.VisibleBounds.Value;
@@ -82,6 +79,9 @@ namespace OpenRA.Graphics
firstRow = r.Bottom - map.Bounds.Top;
}
if (firstRow < 0) firstRow = 0;
if (lastRow > map.Bounds.Height) lastRow = map.Bounds.Height;
if( lastRow < firstRow ) lastRow = firstRow;
Game.Renderer.WorldSpriteRenderer.DrawVertexBuffer(