summaryrefslogtreecommitdiff
path: root/src
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
commit07a1d4379e3694e2302c32eaf044d282e14cfd4f (patch)
tree4b5749c772bcac065c29d59eda1f3044a05ae532 /src
parentde084ace1cb4abc47a4e06d430e36c6860fbd371 (diff)
downloadopenttd-07a1d4379e3694e2302c32eaf044d282e14cfd4f.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')
-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;