From 903a0a08c2ca853d8eeb3aa00caf7afa7faf53de Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 26 Jul 2007 16:51:10 +0000 Subject: (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. --- src/dummy_land.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dummy_land.cpp') diff --git a/src/dummy_land.cpp b/src/dummy_land.cpp index 8ad015f34..03d081cce 100644 --- a/src/dummy_land.cpp +++ b/src/dummy_land.cpp @@ -21,9 +21,9 @@ static uint GetSlopeZ_Dummy(TileIndex tile, uint x, uint y) return 0; } -static Slope GetSlopeTileh_Dummy(TileIndex tile, Slope tileh) +static Foundation GetFoundation_Dummy(TileIndex tile, Slope tileh) { - return SLOPE_FLAT; + return FOUNDATION_NONE; } static CommandCost ClearTile_Dummy(TileIndex tile, byte flags) @@ -81,5 +81,5 @@ extern const TileTypeProcs _tile_type_dummy_procs = { ChangeTileOwner_Dummy, /* change_tile_owner_clear */ NULL, /* get_produced_cargo_proc */ NULL, /* vehicle_enter_tile_proc */ - GetSlopeTileh_Dummy, /* get_slope_tileh_proc */ + GetFoundation_Dummy, /* get_foundation_proc */ }; -- cgit v1.2.3-70-g09d2