mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r6906) - Fix [FS#370]: Clear 'large plane' flag if 'helicopter' flag is set. (mart3p)
This commit is contained in:
parent
326fef684f
commit
b5d448a60f
8
newgrf.c
8
newgrf.c
@ -736,7 +736,13 @@ static bool AircraftVehicleChangeInfo(uint engine, int numinfo, int prop, byte *
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x09: /* Helicopter */
|
case 0x09: /* Helicopter */
|
||||||
FOR_EACH_OBJECT SB(avi[i].subtype, 0, 1, (grf_load_byte(&buf) != 0 ? 1 : 0));
|
FOR_EACH_OBJECT {
|
||||||
|
if (grf_load_byte(&buf) == 0) {
|
||||||
|
avi[i].subtype = 0;
|
||||||
|
} else {
|
||||||
|
SB(avi[i].subtype, 0, 1, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x0A: /* Large */
|
case 0x0A: /* Large */
|
||||||
|
Loading…
Reference in New Issue
Block a user