summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2005-01-26 18:39:35 +0000
committerdominik <dominik@openttd.org>2005-01-26 18:39:35 +0000
commit0ec604ad0f429c194ceba4de951e30313266e28e (patch)
treea596e27a7920402b6fdb968627505f96985c6f36
parent3fb831b0ae7a3d44d0759d60fa3c25bdae1f595c (diff)
downloadopenttd-0ec604ad0f429c194ceba4de951e30313266e28e.tar.xz
(svn r1685) - Fix: [newgrf] airplanes from grf sets are not treated as helicopters, as introduced in r1682
-rw-r--r--newgrf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newgrf.c b/newgrf.c
index 70bfdb5ab..8a687220b 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -590,14 +590,14 @@ static bool AircraftVehicleChangeInfo(uint engine, int numinfo, int prop, byte *
FOR_EACH_OBJECT {
uint8 heli = grf_load_byte(&buf);
avi[i].subtype &= ~0x01; // remove old property
- avi[i].subtype &= (heli == 0) ? 0 : 1;
+ avi[i].subtype |= (heli == 0) ? 0 : 1;
}
} break;
case 0x0A: { /* Large */
FOR_EACH_OBJECT {
uint8 large = grf_load_byte(&buf);
avi[i].subtype &= ~0x02; // remove old property
- avi[i].subtype &= (large == 1) ? 2 : 0;
+ avi[i].subtype |= (large == 1) ? 2 : 0;
}
} break;
case 0x0B: { /* Cost factor */