--- a/src/clear_cmd.cpp Thu Jan 11 13:41:16 2007 +0000
+++ b/src/clear_cmd.cpp Mon Jan 15 20:14:06 2007 +0000
@@ -548,7 +548,7 @@
static uint GetSlopeZ_Clear(TileIndex tile, uint x, uint y)
{
uint z;
- uint tileh = GetTileSlope(tile, &z);
+ Slope tileh = GetTileSlope(tile, &z);
return z + GetPartialZ(x & 0xF, y & 0xF, tileh);
}
@@ -786,7 +786,7 @@
_opt.snow_line = _patches.snow_line_height * TILE_HEIGHT;
}
-const TileTypeProcs _tile_type_clear_procs = {
+extern const TileTypeProcs _tile_type_clear_procs = {
DrawTile_Clear, /* draw_tile_proc */
GetSlopeZ_Clear, /* get_slope_z_proc */
ClearTile_Clear, /* clear_tile_proc */