summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-04-18 03:17:22 +0000
committerbelugas <belugas@openttd.org>2008-04-18 03:17:22 +0000
commit8e4b2593524a40f3614bb71221f205580ed1cf19 (patch)
treec1750c9e8564a4b7b7e9540c98627c955af442d6 /src
parent184ffbb976185cfbcf7a0be2f8406f066ee33aac (diff)
downloadopenttd-8e4b2593524a40f3614bb71221f205580ed1cf19.tar.xz
(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.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_industrytiles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industrytiles.cpp b/src/newgrf_industrytiles.cpp
index f79222e8e..8ee95cfc9 100644
--- a/src/newgrf_industrytiles.cpp
+++ b/src/newgrf_industrytiles.cpp
@@ -279,7 +279,7 @@ bool PerformIndustryTileSlopeCheck(TileIndex ind_base_tile, TileIndex ind_tile,
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 */