equal
deleted
inserted
replaced
205 if (ti->tileh != SLOPE_FLAT) { |
205 if (ti->tileh != SLOPE_FLAT) { |
206 bool draw_old_one = true; |
206 bool draw_old_one = true; |
207 if (HASBIT(inds->callback_flags, CBM_INDT_DRAW_FOUNDATIONS)) { |
207 if (HASBIT(inds->callback_flags, CBM_INDT_DRAW_FOUNDATIONS)) { |
208 /* Called to determine the type (if any) of foundation to draw for industry tile */ |
208 /* Called to determine the type (if any) of foundation to draw for industry tile */ |
209 uint32 callback_res = GetIndustryTileCallback(CBID_INDUSTRY_DRAW_FOUNDATIONS, 0, 0, gfx, i, ti->tile); |
209 uint32 callback_res = GetIndustryTileCallback(CBID_INDUSTRY_DRAW_FOUNDATIONS, 0, 0, gfx, i, ti->tile); |
210 draw_old_one = callback_res == 0 || callback_res == CALLBACK_FAILED; |
210 draw_old_one = callback_res != 0; |
211 } |
211 } |
212 |
212 |
213 if (draw_old_one) DrawFoundation(ti, ti->tileh); |
213 if (draw_old_one) DrawFoundation(ti, ti->tileh); |
214 } |
214 } |
215 |
215 |