diff options
author | dominik <dominik@openttd.org> | 2005-01-26 17:36:59 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2005-01-26 17:36:59 +0000 |
commit | f20758441c50e84056de9a5447de88024da8bd2c (patch) | |
tree | 3a7b62ffa4793f997a49ebe817e6b12cef60d308 | |
parent | ccd4f53a34b407c3573f42ad481800a215303779 (diff) | |
download | openttd-f20758441c50e84056de9a5447de88024da8bd2c.tar.xz |
(svn r1682) - Fix: [newgrf] Helicopters from grf sets are now correctly recognized
-rw-r--r-- | newgrf.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 */ |