diff options
author | frosch <frosch@openttd.org> | 2010-01-22 22:32:39 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-01-22 22:32:39 +0000 |
commit | 3df9caa86a5b2345931c2070f2c73defb101c8ee (patch) | |
tree | d2ba329e599e6a206732edb6e8ed898dd67d4d48 /src | |
parent | bf65eb686e5d96a62e43279fa6ba4d935cdd3b44 (diff) | |
download | openttd-3df9caa86a5b2345931c2070f2c73defb101c8ee.tar.xz |
(svn r18890) -Codechange: Unify drawing of foundations for MP_UNMOVABLE.
Diffstat (limited to 'src')
-rw-r--r-- | src/unmovable_cmd.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp index c1b626517..91715604b 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)); |