src/newgrf_industrytiles.cpp
changeset 7704 f5961e82f08a
parent 7466 01be88d1c0a6
child 7708 595630b38fbf
equal deleted inserted replaced
7703:bc4b879b7324 7704:f5961e82f08a
   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