diff options
author | rubidium <rubidium@openttd.org> | 2014-09-21 11:14:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-09-21 11:14:58 +0000 |
commit | 04e2324b8f9083627354131cbe45a2164283b952 (patch) | |
tree | 8d7c4a274217ac7cd3d805cc95e8004c56496d24 /src/tile_map.h | |
parent | 51a1c712f2f95439fe52679565cc3c3e9a6d23cf (diff) | |
download | openttd-04e2324b8f9083627354131cbe45a2164283b952.tar.xz |
(svn r26873) -Change: split type_height into a type and height array (ic111)
Diffstat (limited to 'src/tile_map.h')
-rw-r--r-- | src/tile_map.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tile_map.h b/src/tile_map.h index af1cc32dc..345dc1d1e 100644 --- a/src/tile_map.h +++ b/src/tile_map.h @@ -31,7 +31,7 @@ static inline uint TileHeight(TileIndex tile) { assert(tile < MapSize()); - return GB(_m[tile].type_height, 0, 4); + return _m[tile].height; } uint TileHeightOutsideMap(int x, int y); @@ -50,7 +50,7 @@ static inline void SetTileHeight(TileIndex tile, uint height) { assert(tile < MapSize()); assert(height <= MAX_TILE_HEIGHT); - SB(_m[tile].type_height, 0, 4, height); + _m[tile].height = height; } /** @@ -76,7 +76,7 @@ static inline uint TilePixelHeight(TileIndex tile) static inline TileType GetTileType(TileIndex tile) { assert(tile < MapSize()); - return (TileType)GB(_m[tile].type_height, 4, 4); + return (TileType)GB(_m[tile].type, 4, 4); } /** @@ -115,7 +115,7 @@ static inline void SetTileType(TileIndex tile, TileType type) * edges of the map. If _settings_game.construction.freeform_edges is true, * the upper edges of the map are also VOID tiles. */ assert(IsInnerTile(tile) == (type != MP_VOID)); - SB(_m[tile].type_height, 4, 4, type); + SB(_m[tile].type, 4, 4, type); } /** |