Mercurial > hg > openttd
changeset 3094:5be56f745aaf draft
(svn r3683) Get rid of another FindLandscapeHeight()
author | tron <tron@openttd.org> |
---|---|
date | Tue, 28 Feb 2006 06:14:42 +0000 |
parents | c333a6795b00 |
children | 8737defcb6b4 |
files | industry_cmd.c |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/industry_cmd.c +++ b/industry_cmd.c @@ -663,9 +663,15 @@ static void MakeIndustryTileBiggerCase8(TileIndex tile) { - TileInfo ti; - FindLandscapeHeight(&ti, TileX(tile) * 16, TileY(tile) * 16); - CreateEffectVehicle(ti.x + 15, ti.y + 14, ti.z + 59 + (ti.tileh != 0 ? 8 : 0), EV_CHIMNEY_SMOKE); + uint tileh; + uint x; + uint y; + uint z; + + tileh = GetTileSlope(tile, &z); + x = TileX(tile) * TILE_SIZE; + y = TileY(tile) * TILE_SIZE; + CreateEffectVehicle(x + 15, y + 14, z + 59 + (tileh != 0 ? 8 : 0), EV_CHIMNEY_SMOKE); } static void MakeIndustryTileBigger(TileIndex tile, byte size)