diff options
author | rubidium <rubidium@openttd.org> | 2007-07-26 16:51:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-26 16:51:10 +0000 |
commit | 903a0a08c2ca853d8eeb3aa00caf7afa7faf53de (patch) | |
tree | 4b6a986aa841f12efff161e45aacd1a023cff71d /src/clear_cmd.cpp | |
parent | a67957866a9006e05158b9735b228bd5b93390a0 (diff) | |
download | openttd-903a0a08c2ca853d8eeb3aa00caf7afa7faf53de.tar.xz |
(svn r10698) -Codechange [FS#1082]: simplify the code related to foundations. Primarily removal of (duplicated|magic) code and introduction of few helper functions to ease foundation determination. Patch by frosch.
Diffstat (limited to 'src/clear_cmd.cpp')
-rw-r--r-- | src/clear_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clear_cmd.cpp b/src/clear_cmd.cpp index 1dfb61608..134a04c7f 100644 --- a/src/clear_cmd.cpp +++ b/src/clear_cmd.cpp @@ -573,9 +573,9 @@ static uint GetSlopeZ_Clear(TileIndex tile, uint x, uint y) return z + GetPartialZ(x & 0xF, y & 0xF, tileh); } -static Slope GetSlopeTileh_Clear(TileIndex tile, Slope tileh) +static Foundation GetFoundation_Clear(TileIndex tile, Slope tileh) { - return tileh; + return FOUNDATION_NONE; } static void GetAcceptedCargo_Clear(TileIndex tile, AcceptedCargo ac) @@ -819,5 +819,5 @@ extern const TileTypeProcs _tile_type_clear_procs = { ChangeTileOwner_Clear, ///< change_tile_owner_clear NULL, ///< get_produced_cargo_proc NULL, ///< vehicle_enter_tile_proc - GetSlopeTileh_Clear, ///< get_slope_tileh_proc + GetFoundation_Clear, ///< get_foundation_proc }; |