bugfix in terrain renderer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user