From 3df9caa86a5b2345931c2070f2c73defb101c8ee Mon Sep 17 00:00:00 2001 From: frosch Date: Fri, 22 Jan 2010 22:32:39 +0000 Subject: [PATCH] (svn r18890) -Codechange: Unify drawing of foundations for MP_UNMOVABLE. --- src/unmovable_cmd.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp index c1b626517b..91715604b9 100644 --- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -187,14 +187,13 @@ static Foundation GetFoundation_Unmovable(TileIndex tile, Slope tileh); static void DrawTile_Unmovable(TileInfo *ti) { - + DrawFoundation(ti, GetFoundation_Unmovable(ti->tile, ti->tileh)); switch (GetUnmovableType(ti->tile)) { default: NOT_REACHED(); case UNMOVABLE_TRANSMITTER: case UNMOVABLE_LIGHTHOUSE: { const DrawTileSeqStruct *dtu = &_draw_tile_transmitterlighthouse_data[GetUnmovableType(ti->tile)]; - if (ti->tileh != SLOPE_FLAT) DrawFoundation(ti, FOUNDATION_LEVELED); DrawClearLandTile(ti, 2); if (IsInvisibilitySet(TO_STRUCTURES)) break; @@ -208,9 +207,6 @@ static void DrawTile_Unmovable(TileInfo *ti) } case UNMOVABLE_STATUE: - /* This should prevent statues from sinking into the ground when on a slope. */ - if (ti->tileh != SLOPE_FLAT) DrawFoundation(ti, GetFoundation_Unmovable(ti->tile, ti->tileh)); - DrawGroundSprite(SPR_CONCRETE_GROUND, PAL_NONE); if (IsInvisibilitySet(TO_STRUCTURES)) break; @@ -230,7 +226,6 @@ static void DrawTile_Unmovable(TileInfo *ti) case UNMOVABLE_HQ:{ assert(IsCompanyHQ(ti->tile)); - if (ti->tileh != SLOPE_FLAT) DrawFoundation(ti, FOUNDATION_LEVELED); PaletteID palette = COMPANY_SPRITE_COLOUR(GetTileOwner(ti->tile));