equal
deleted
inserted
replaced
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, |