equal
deleted
inserted
replaced
59 { |
59 { |
60 assert(tile < MapSize()); |
60 assert(tile < MapSize()); |
61 return GB(_m[tile].type_height, 0, 4); |
61 return GB(_m[tile].type_height, 0, 4); |
62 } |
62 } |
63 |
63 |
|
64 static inline bool IsSteepTileh(uint tileh) |
|
65 { |
|
66 return (tileh & 0x10); |
|
67 } |
|
68 |
64 static inline void SetTileHeight(TileIndex tile, uint height) |
69 static inline void SetTileHeight(TileIndex tile, uint height) |
65 { |
70 { |
66 assert(tile < MapSize()); |
71 assert(tile < MapSize()); |
67 assert(height < 16); |
72 assert(height < 16); |
68 SB(_m[tile].type_height, 0, 4, height); |
73 SB(_m[tile].type_height, 0, 4, height); |