mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r16263) -Change: Interpret setting bridge property 08 to 0 as always available.
This commit is contained in:
parent
2060b0b29a
commit
a6f181f74b
@ -1356,9 +1356,12 @@ static ChangeInfoResult BridgeChangeInfo(uint brid, int numinfo, int prop, byte
|
||||
BridgeSpec *bridge = &_bridge[brid + i];
|
||||
|
||||
switch (prop) {
|
||||
case 0x08: // Year of availability
|
||||
bridge->avail_year = ORIGINAL_BASE_YEAR + grf_load_byte(&buf);
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user