summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-10-23 17:01:02 +0000
committerpeter1138 <peter1138@openttd.org>2006-10-23 17:01:02 +0000
commitb5d448a60fedf750ff13b0469c3ba7cf8f450f98 (patch)
tree2f5e9af2b55576f62509a3139eec501d4ffecb31 /newgrf.c
parent326fef684faa39371e9be711af80e208f20994b8 (diff)
downloadopenttd-b5d448a60fedf750ff13b0469c3ba7cf8f450f98.tar.xz
(svn r6906) - Fix [FS#370]: Clear 'large plane' flag if 'helicopter' flag is set. (mart3p)
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index 22286a4a0..ef9fbe686 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -736,7 +736,13 @@ static bool AircraftVehicleChangeInfo(uint engine, int numinfo, int prop, byte *
break;
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;
case 0x0A: /* Large */