equal
deleted
inserted
replaced
546 } |
546 } |
547 |
547 |
548 static uint GetSlopeZ_Clear(TileIndex tile, uint x, uint y) |
548 static uint GetSlopeZ_Clear(TileIndex tile, uint x, uint y) |
549 { |
549 { |
550 uint z; |
550 uint z; |
551 uint tileh = GetTileSlope(tile, &z); |
551 Slope tileh = GetTileSlope(tile, &z); |
552 |
552 |
553 return z + GetPartialZ(x & 0xF, y & 0xF, tileh); |
553 return z + GetPartialZ(x & 0xF, y & 0xF, tileh); |
554 } |
554 } |
555 |
555 |
556 static Slope GetSlopeTileh_Clear(TileIndex tile, Slope tileh) |
556 static Slope GetSlopeTileh_Clear(TileIndex tile, Slope tileh) |
784 void InitializeClearLand(void) |
784 void InitializeClearLand(void) |
785 { |
785 { |
786 _opt.snow_line = _patches.snow_line_height * TILE_HEIGHT; |
786 _opt.snow_line = _patches.snow_line_height * TILE_HEIGHT; |
787 } |
787 } |
788 |
788 |
789 const TileTypeProcs _tile_type_clear_procs = { |
789 extern const TileTypeProcs _tile_type_clear_procs = { |
790 DrawTile_Clear, /* draw_tile_proc */ |
790 DrawTile_Clear, /* draw_tile_proc */ |
791 GetSlopeZ_Clear, /* get_slope_z_proc */ |
791 GetSlopeZ_Clear, /* get_slope_z_proc */ |
792 ClearTile_Clear, /* clear_tile_proc */ |
792 ClearTile_Clear, /* clear_tile_proc */ |
793 GetAcceptedCargo_Clear, /* get_accepted_cargo_proc */ |
793 GetAcceptedCargo_Clear, /* get_accepted_cargo_proc */ |
794 GetTileDesc_Clear, /* get_tile_desc_proc */ |
794 GetTileDesc_Clear, /* get_tile_desc_proc */ |