# HG changeset patch # User tron # Date 1141107282 0 # Node ID e8318bbdbee51624308b50f149adceb96b21e2f5 # Parent e48b7a12895f4a6eb613047e22b03fdfbda339fb (svn r3683) Get rid of another FindLandscapeHeight() diff -r e48b7a12895f -r e8318bbdbee5 industry_cmd.c --- a/industry_cmd.c Mon Feb 27 19:49:53 2006 +0000 +++ b/industry_cmd.c Tue Feb 28 06:14:42 2006 +0000 @@ -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)