diff options
author | rubidium <rubidium@openttd.org> | 2007-07-12 09:15:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-12 09:15:57 +0000 |
commit | 07a1d4379e3694e2302c32eaf044d282e14cfd4f (patch) | |
tree | 4b5749c772bcac065c29d59eda1f3044a05ae532 | |
parent | de084ace1cb4abc47a4e06d430e36c6860fbd371 (diff) | |
download | openttd-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.
-rw-r--r-- | src/newgrf_industrytiles.cpp | 2 |
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; |