bugfix in terrain renderer

This commit is contained in:
Chris Forbes
2010-01-31 21:14:02 +13:00
parent aba8872898
commit 57d9055aeb

View File

@@ -55,7 +55,7 @@ namespace OpenRa.Graphics
int indicesPerRow = map.Width * 6;
int verticesPerRow = map.Width * 4;
int visibleRows = (int)(viewport.Width / 24.0f + 2);
int visibleRows = (int)(viewport.Height / 24.0f + 2);
int firstRow = (int)((viewport.Location.Y) / 24.0f - map.YOffset);
int lastRow = firstRow + visibleRows;