src/industry_cmd.cpp
changeset 9302 4aa3c4a44b16
parent 9281 d8cd9ac52a68
child 9332 2e120d0bd632
equal deleted inserted replaced
9301:79c7f7dee677 9302:4aa3c4a44b16
   301 	/* DrawFoundation() modifes ti->z and ti->tileh */
   301 	/* DrawFoundation() modifes ti->z and ti->tileh */
   302 	if (ti->tileh != SLOPE_FLAT) DrawFoundation(ti, FOUNDATION_LEVELED);
   302 	if (ti->tileh != SLOPE_FLAT) DrawFoundation(ti, FOUNDATION_LEVELED);
   303 
   303 
   304 	DrawGroundSprite(image, pal);
   304 	DrawGroundSprite(image, pal);
   305 
   305 
       
   306 	/* If industries are transparent and invisible, do not draw the upper part */
       
   307 	if (IsInvisibilitySet(TO_INDUSTRIES)) return;
       
   308 
   306 	/* Add industry on top of the ground? */
   309 	/* Add industry on top of the ground? */
   307 	image = dits->building.sprite;
   310 	image = dits->building.sprite;
   308 	if (image != 0) {
   311 	if (image != 0) {
   309 		AddSortableSpriteToDraw(image,
   312 		AddSortableSpriteToDraw(image,
   310 			(HasBit(image, PALETTE_MODIFIER_COLOR) && dits->building.pal == PAL_NONE) ? GENERAL_SPRITE_COLOR(ind->random_color) : dits->building.pal,
   313 			(HasBit(image, PALETTE_MODIFIER_COLOR) && dits->building.pal == PAL_NONE) ? GENERAL_SPRITE_COLOR(ind->random_color) : dits->building.pal,