mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r1682) - Fix: [newgrf] Helicopters from grf sets are now correctly recognized
This commit is contained in:
parent
efcd72a2ef
commit
478e001d0e
8
newgrf.c
8
newgrf.c
@ -589,15 +589,15 @@ static bool AircraftVehicleChangeInfo(uint engine, int numinfo, int prop, byte *
|
||||
case 0x09: { /* Helicopter */
|
||||
FOR_EACH_OBJECT {
|
||||
uint8 heli = grf_load_byte(&buf);
|
||||
|
||||
avi[i].subtype = (heli == 0) ? 0 : 1;
|
||||
avi[i].subtype &= ~0x01; // remove old property
|
||||
avi[i].subtype &= (heli == 0) ? 0 : 1;
|
||||
}
|
||||
} break;
|
||||
case 0x0A: { /* Large */
|
||||
FOR_EACH_OBJECT {
|
||||
uint8 large = grf_load_byte(&buf);
|
||||
|
||||
avi[i].subtype = (large == 1) ? 3 : 1;
|
||||
avi[i].subtype &= ~0x02; // remove old property
|
||||
avi[i].subtype &= (large == 1) ? 2 : 0;
|
||||
}
|
||||
} break;
|
||||
case 0x0B: { /* Cost factor */
|
||||
|
Loading…
Reference in New Issue
Block a user