industry_cmd.c
changeset 3773 0019b5f70ea9
parent 3689 50a3fd4ba752
child 3877 0a298def0202
equal deleted inserted replaced
3772:f2cf079d7afe 3773:0019b5f70ea9
   533 	}
   533 	}
   534 }
   534 }
   535 
   535 
   536 static void CreateIndustryEffectSmoke(TileIndex tile)
   536 static void CreateIndustryEffectSmoke(TileIndex tile)
   537 {
   537 {
   538 	Slope tileh;
   538 	uint x = TileX(tile) * TILE_SIZE;
   539 	uint x;
   539 	uint y = TileY(tile) * TILE_SIZE;
   540 	uint y;
   540 	uint z = GetTileMaxZ(tile);
   541 	uint z;
   541 
   542 
   542 	CreateEffectVehicle(x + 15, y + 14, z + 59, EV_CHIMNEY_SMOKE);
   543 	tileh = GetTileSlope(tile, &z);
       
   544 	x = TileX(tile) * TILE_SIZE;
       
   545 	y = TileY(tile) * TILE_SIZE;
       
   546 	CreateEffectVehicle(x + 15, y + 14, z + 59 + (tileh != SLOPE_FLAT ? TILE_HEIGHT : 0), EV_CHIMNEY_SMOKE);
       
   547 }
   543 }
   548 
   544 
   549 static void MakeIndustryTileBigger(TileIndex tile)
   545 static void MakeIndustryTileBigger(TileIndex tile)
   550 {
   546 {
   551 	byte cnt = GetIndustryConstructionCounter(tile) + 1;
   547 	byte cnt = GetIndustryConstructionCounter(tile) + 1;