(svn r11160) -Fix: A gfx of 0xFF does not count when it's time to establish the size of the industry.

This commit is contained in:
belugas 2007-09-26 01:24:12 +00:00
parent 94a710fa46
commit ea2100e4e8
1 changed files with 1 additions and 0 deletions

View File

@ -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);