(svn r11160) -Fix: A gfx of 0xFF does not count when it's time to establish the size of the industry.
authorbelugas
Wed, 26 Sep 2007 01:24:12 +0000
changeset 7629 711bbbc7a171
parent 7628 b723a5a8065f
child 7630 e6f5a3dbd443
(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
--- a/src/industry_cmd.cpp	Tue Sep 25 14:15:38 2007 +0000
+++ b/src/industry_cmd.cpp	Wed Sep 26 01:24:12 2007 +0000
@@ -1318,6 +1318,7 @@
 
 	/* 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);