src/newgrf_industrytiles.cpp
changeset 8686 8fc6099544af
parent 8571 53c94d717e99
child 8756 b6f8dc6a246f
equal deleted inserted replaced
8685:fdc27d8e35b3 8686:8fc6099544af
   273 	uint16 callback_res = GetIndustryTileCallback(CBID_INDTILE_SHAPE_CHECK, 0, itspec_index, gfx, &ind, ind_tile);
   273 	uint16 callback_res = GetIndustryTileCallback(CBID_INDTILE_SHAPE_CHECK, 0, itspec_index, gfx, &ind, ind_tile);
   274 	if (callback_res == CALLBACK_FAILED) {
   274 	if (callback_res == CALLBACK_FAILED) {
   275 		return !IsSlopeRefused(GetTileSlope(ind_tile, NULL), its->slopes_refused);
   275 		return !IsSlopeRefused(GetTileSlope(ind_tile, NULL), its->slopes_refused);
   276 	}
   276 	}
   277 	if (its->grf_prop.grffile->grf_version < 7) {
   277 	if (its->grf_prop.grffile->grf_version < 7) {
   278 		return callback_res != 0;
   278 		return (callback_res & 0xFF) != 0; // mask to 8 bit callback result
   279 	}
   279 	}
   280 
   280 
   281 	/* Copy some parameters from the registers to the error message text ref. stack */
   281 	/* Copy some parameters from the registers to the error message text ref. stack */
   282 	SwitchToErrorRefStack();
   282 	SwitchToErrorRefStack();
   283 	PrepareTextRefStackUsage(4);
   283 	PrepareTextRefStackUsage(4);