Changeset - r3094:4d3e4ac13389
[Not reviewed]
master
0 1 0
tron - 18 years ago 2006-02-28 06:14:42
tron@openttd.org
(svn r3683) Get rid of another FindLandscapeHeight()
1 file changed with 9 insertions and 3 deletions:
0 comments (0 inline, 0 general)
industry_cmd.c
Show inline comments
 
@@ -663,9 +663,15 @@ static void AnimateTile_Industry(TileInd
 

	
 
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)
0 comments (0 inline, 0 general)