summaryrefslogtreecommitdiff
path: root/src/newgrf_industrytiles.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-09 13:59:07 +0000
committerrubidium <rubidium@openttd.org>2007-07-09 13:59:07 +0000
commit6cf2aad16550db18ae5f82720ead2fbb51cb253a (patch)
tree24468a056c2a41770b2bce4e58600ea5962ffa88 /src/newgrf_industrytiles.cpp
parentbb8923c336f67270d1c7af12df9c5a9f029d67cc (diff)
downloadopenttd-6cf2aad16550db18ae5f82720ead2fbb51cb253a.tar.xz
(svn r10486) -Fix: do not draw foundations when the "should I draw foundations" callbacks says to do so.
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 5bce8b12d..a3f07242c 100644
--- a/src/newgrf_industrytiles.cpp
+++ b/src/newgrf_industrytiles.cpp
@@ -207,7 +207,7 @@ bool DrawNewIndustryTile(TileInfo *ti, Industry *i, IndustryGfx gfx, const Indus
if (HASBIT(inds->callback_flags, CBM_INDT_DRAW_FOUNDATIONS)) {
/* Called to determine the type (if any) of foundation to draw for industry tile */
uint32 callback_res = GetIndustryTileCallback(CBID_INDUSTRY_DRAW_FOUNDATIONS, 0, 0, gfx, i, ti->tile);
- draw_old_one = callback_res == 0 || callback_res == CALLBACK_FAILED;
+ draw_old_one = callback_res != 0;
}
if (draw_old_one) DrawFoundation(ti, ti->tileh);