Load tmp(ts) ExtraData for cliffs etc.

This commit is contained in:
Paul Chote
2014-10-23 18:54:46 +13:00
parent c3b6f9bef6
commit aab9ad5ac0
3 changed files with 57 additions and 17 deletions

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Graphics
foreach (var cell in map.Cells)
{
var tile = wr.Theater.TileSprite(map.MapTiles.Value[cell]);
var pos = wr.ScreenPosition(map.CenterOfCell(cell)) - 0.5f * tile.size;
var pos = wr.ScreenPosition(map.CenterOfCell(cell)) + tile.offset - 0.5f * tile.size;
Util.FastCreateQuad(vertices, pos, tile, terrainPalette, nv, tile.size);
nv += 4;
}