# HG changeset patch # User belugas # Date 1208488642 0 # Node ID 885904c2bf735ed9069316f42ee575cf681c0c61 # Parent 511e7f1bc564ed3c55a2ff4c1dc76388450ffbc7 (svn r12759) -Fix(r12358): There is no need to mask callback result for pre-version7 since CBID_INDTILE_SHAPE_CHECK (cb2F) is really 15 bits. diff -r 511e7f1bc564 -r 885904c2bf73 src/newgrf_industrytiles.cpp --- a/src/newgrf_industrytiles.cpp Fri Apr 18 01:35:17 2008 +0000 +++ b/src/newgrf_industrytiles.cpp Fri Apr 18 03:17:22 2008 +0000 @@ -279,7 +279,7 @@ return !IsSlopeRefused(GetTileSlope(ind_tile, NULL), its->slopes_refused); } if (its->grf_prop.grffile->grf_version < 7) { - return (callback_res & 0xFF) != 0; // mask to 8 bit callback result + return callback_res != 0; } /* Copy some parameters from the registers to the error message text ref. stack */