summaryrefslogtreecommitdiff
path: root/src/newgrf_industrytiles.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-03-11 12:55:41 +0000
committerfrosch <frosch@openttd.org>2008-03-11 12:55:41 +0000
commit3eaf7af980979d2cc09eecb15a98a2528ee3c21a (patch)
treee5df166b12ad3d52a8d80efe081b2a7b2f92f236 /src/newgrf_industrytiles.cpp
parentc9c870b768ac2c98fbb022dcbb03338262a85128 (diff)
downloadopenttd-3eaf7af980979d2cc09eecb15a98a2528ee3c21a.tar.xz
(svn r12358) -Fix: Callback 2F returns 15 bit results starting from grf version 7.
Diffstat (limited to 'src/newgrf_industrytiles.cpp')
-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 2ca61fd01..4b229f7e3 100644
--- a/src/newgrf_industrytiles.cpp
+++ b/src/newgrf_industrytiles.cpp
@@ -275,7 +275,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 != 0;
+ return (callback_res & 0xFF) != 0; // mask to 8 bit callback result
}
/* Copy some parameters from the registers to the error message text ref. stack */