equal
deleted
inserted
replaced
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); |