Changeset - r11864:de6cc5ca8e7b
[Not reviewed]
master
0 1 0
frosch - 16 years ago 2009-05-09 19:48:14
frosch@openttd.org
(svn r16263) -Change: Interpret setting bridge property 08 to 0 as always available.
1 file changed with 6 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/newgrf.cpp
Show inline comments
 
@@ -1356,9 +1356,12 @@ static ChangeInfoResult BridgeChangeInfo
 
		BridgeSpec *bridge = &_bridge[brid + i];
 

	
 
		switch (prop) {
 
			case 0x08: // Year of availability
 
				bridge->avail_year = ORIGINAL_BASE_YEAR + grf_load_byte(&buf);
 
				break;
 
			case 0x08: { // Year of availability
 
				/* We treat '0' as always available */
 
				byte year = grf_load_byte(&buf);
 
				bridge->avail_year = (year > 0 ? ORIGINAL_BASE_YEAR + year : 0);
 
				break;
 
			}
 

	
 
			case 0x09: // Minimum length
 
				bridge->min_length = grf_load_byte(&buf);
0 comments (0 inline, 0 general)