Use CellLayer for custom terrain.

This commit is contained in:
Paul Chote
2014-05-17 01:30:00 +12:00
parent c5b4d643af
commit ce331a28e8
5 changed files with 12 additions and 12 deletions

View File

@@ -34,7 +34,7 @@ namespace OpenRA.Mods.RA
public void AddTile(CPos cell, TileReference<ushort, byte> tile)
{
map.CustomTerrain[cell.X, cell.Y] = tileset.GetTerrainIndex(tile);
map.CustomTerrain[cell] = tileset.GetTerrainIndex(tile);
// Terrain tiles define their origin at the topleft
var s = theater.TileSprite(tile);