From ea2100e4e8dfafcaa1c37a90bb0a78fb1c2260c4 Mon Sep 17 00:00:00 2001 From: belugas Date: Wed, 26 Sep 2007 01:24:12 +0000 Subject: (svn r11160) -Fix: A gfx of 0xFF does not count when it's time to establish the size of the industry. --- src/industry_cmd.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf