|
|
@ -207,7 +207,7 @@ bool DrawNewIndustryTile(TileInfo *ti, Industry *i, IndustryGfx gfx, const Indus
|
|
|
|
if (HASBIT(inds->callback_flags, CBM_INDT_DRAW_FOUNDATIONS)) {
|
|
|
|
if (HASBIT(inds->callback_flags, CBM_INDT_DRAW_FOUNDATIONS)) {
|
|
|
|
/* Called to determine the type (if any) of foundation to draw for industry tile */
|
|
|
|
/* Called to determine the type (if any) of foundation to draw for industry tile */
|
|
|
|
uint32 callback_res = GetIndustryTileCallback(CBID_INDUSTRY_DRAW_FOUNDATIONS, 0, 0, gfx, i, ti->tile);
|
|
|
|
uint32 callback_res = GetIndustryTileCallback(CBID_INDUSTRY_DRAW_FOUNDATIONS, 0, 0, gfx, i, ti->tile);
|
|
|
|
draw_old_one = callback_res == 0 || callback_res == CALLBACK_FAILED;
|
|
|
|
draw_old_one = callback_res != 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (draw_old_one) DrawFoundation(ti, ti->tileh);
|
|
|
|
if (draw_old_one) DrawFoundation(ti, ti->tileh);
|
|
|
|