src/clear_cmd.cpp
changeset 5838 9c3129cb019b
parent 5835 e0ff603ae0b7
child 5919 2b58160d667d
equal deleted inserted replaced
5837:96b4b92b86ae 5838:9c3129cb019b
   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 */