src/newgrf_industrytiles.cpp
changeset 9182 3c6eb660d4e5
parent 9067 88f2bc991236
child 9252 92e05c28a994
child 10323 57d8fd25473e
equal deleted inserted replaced
9181:b65dd02939dd 9182:3c6eb660d4e5
   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);