summaryrefslogtreecommitdiff
path: root/src/newgrf_industrytiles.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-12 09:15:57 +0000
committerrubidium <rubidium@openttd.org>2007-07-12 09:15:57 +0000
commit469e1e2596f6a9921399aee5168716c32d5d6b8a (patch)
tree4b5749c772bcac065c29d59eda1f3044a05ae532 /src/newgrf_industrytiles.cpp
parent3378095add30db1f3d6386da3007569ca8b35e33 (diff)
downloadopenttd-469e1e2596f6a9921399aee5168716c32d5d6b8a.tar.xz
(svn r10520) -Fix: when a "can I build this industry tile here" callback did not fail, it doesn't automatically mean that the industry tile can be built there.
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 bfa1dbb88..6983abd4e 100644
--- a/src/newgrf_industrytiles.cpp
+++ b/src/newgrf_industrytiles.cpp
@@ -244,7 +244,7 @@ bool PerformIndustryTileSlopeCheck(TileIndex tile, const IndustryTileSpec *its,
if (its->grf_prop.grffile->grf_version < 7) {
return callback_res != 0;
}
- if (callback_res != CALLBACK_FAILED) return true;
+ if (callback_res == CALLBACK_FAILED) return false;
switch (callback_res) {
case 0x400: return true;