tile.h
branch0.4
changeset 10023 4a72310c9cf5
parent 9959 984493ab6fff
child 10046 6301f3512550
equal deleted inserted replaced
10022:9cb1a8fd9155 10023:4a72310c9cf5
    48 uint GetMapExtraBits(TileIndex tile);
    48 uint GetMapExtraBits(TileIndex tile);
    49 
    49 
    50 uint GetTileh(uint n, uint w, uint e, uint s, uint *h);
    50 uint GetTileh(uint n, uint w, uint e, uint s, uint *h);
    51 uint GetTileSlope(TileIndex tile, uint *h);
    51 uint GetTileSlope(TileIndex tile, uint *h);
    52 uint GetTileZ(TileIndex tile);
    52 uint GetTileZ(TileIndex tile);
       
    53 uint GetTileMaxZ(TileIndex tile);
    53 
    54 
    54 static inline bool CorrectZ(uint tileh)
    55 static inline bool CorrectZ(uint tileh)
    55 {
    56 {
    56 	/* tile height must be corrected if the north corner is not raised, but
    57 	/* tile height must be corrected if the north corner is not raised, but
    57 	 * any other corner is. These are the cases 1 till 7 */
    58 	 * any other corner is. These are the cases 1 till 7 */