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/newgrf_house.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newgrf_house.cpp') diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index 533bf561f..bbc7c19c8 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -351,7 +351,7 @@ void DrawNewHouseTile(TileInfo *ti, HouseID house_id) const SpriteGroup *group; ResolverObject object; - if (ti->tileh != SLOPE_FLAT) DrawFoundation(ti, ti->tileh); + if (ti->tileh != SLOPE_FLAT) DrawFoundation(ti, FOUNDATION_LEVELED); NewHouseResolver(&object, house_id, ti->tile, GetTownByTile(ti->tile)); -- cgit v1.2.3-54-g00ecf