summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-09-26 01:24:12 +0000
committerbelugas <belugas@openttd.org>2007-09-26 01:24:12 +0000
commitbd9d8c08edc7a1722571d3ed24e758305a41fbaa (patch)
tree287fb6faaaabf51719abfab26ff65574bfe0ac57 /src/industry_cmd.cpp
parentd7d03edf2d7559a760c4abaa74d41fe3f4ed4bb1 (diff)
downloadopenttd-bd9d8c08edc7a1722571d3ed24e758305a41fbaa.tar.xz
(svn r11160) -Fix: A gfx of 0xFF does not count when it's time to establish the size of the industry.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 39d0fb14f..dd62073eb 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1318,6 +1318,7 @@ static bool CheckIfCanLevelIndustryPlatform(TileIndex tile, uint32 flags, const
/* Finds dimensions of largest variant of this industry */
do {
+ if (it->gfx == 0xFF) continue; // FF been a marquer for a check on clear water, skip it
if (it->ti.x > max_x) max_x = it->ti.x;
if (it->ti.y > max_y) max_y = it->ti.y;
} while ((++it)->ti.x != MKEND);