From 07a1d4379e3694e2302c32eaf044d282e14cfd4f Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 12 Jul 2007 09:15:57 +0000 Subject: [PATCH] (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. --- src/newgrf_industrytiles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_industrytiles.cpp b/src/newgrf_industrytiles.cpp index bfa1dbb88f..6983abd4ec 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;