industry_cmd.c
changeset 3773 0019b5f70ea9
parent 3689 50a3fd4ba752
child 3877 0a298def0202
--- a/industry_cmd.c	Sun May 07 07:01:48 2006 +0000
+++ b/industry_cmd.c	Sun May 07 07:55:05 2006 +0000
@@ -535,15 +535,11 @@
 
 static void CreateIndustryEffectSmoke(TileIndex tile)
 {
-	Slope tileh;
-	uint x;
-	uint y;
-	uint z;
+	uint x = TileX(tile) * TILE_SIZE;
+	uint y = TileY(tile) * TILE_SIZE;
+	uint z = GetTileMaxZ(tile);
 
-	tileh = GetTileSlope(tile, &z);
-	x = TileX(tile) * TILE_SIZE;
-	y = TileY(tile) * TILE_SIZE;
-	CreateEffectVehicle(x + 15, y + 14, z + 59 + (tileh != SLOPE_FLAT ? TILE_HEIGHT : 0), EV_CHIMNEY_SMOKE);
+	CreateEffectVehicle(x + 15, y + 14, z + 59, EV_CHIMNEY_SMOKE);
 }
 
 static void MakeIndustryTileBigger(TileIndex tile)