TileSet cleanups.

This commit is contained in:
Paul Chote
2014-10-23 20:13:34 +13:00
parent 7d11649fab
commit ab2bc789ce
3 changed files with 16 additions and 22 deletions

View File

@@ -44,7 +44,7 @@ namespace OpenRA.Graphics
{
var mapX = x + b.Left;
var mapY = y + b.Top;
var type = tileset.GetTerrainInfo(mapTiles[mapX, mapY]);
var type = tileset[tileset.GetTerrainIndex(mapTiles[mapX, mapY])];
colors[y * stride + x] = type.Color.ToArgb();
}
}