Hack in a different terrain palette

This commit is contained in:
Paul Chote
2010-02-03 21:14:42 +13:00
parent 9d2373b602
commit e44c46200d
4 changed files with 9 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ namespace OpenRa.Graphics
for( int i = map.XOffset ; i < map.XOffset + map.Width; i++ )
{
Sprite tile = tileMapping[map.MapTiles[i, j]];
Util.FastCreateQuad(vertices, indices, Game.CellSize * new float2(i, j), tile, 0, nv, ni, tile.size);
Util.FastCreateQuad(vertices, indices, Game.CellSize * new float2(i, j), tile, (int)PaletteType.Terrain, nv, ni, tile.size);
nv += 4;
ni += 6;
}