tile.h
changeset 2085 876f20a0e843
parent 2049 538e73c53f54
child 2125 edc17858f9f6
equal deleted inserted replaced
2084:65639f898a50 2085:876f20a0e843
    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);