diff options
author | Darkvater <darkvater@openttd.org> | 2007-01-27 12:45:55 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2007-01-27 12:45:55 +0000 |
commit | 08c21c0c61be2e6e19517559288f3f40b77c0f0f (patch) | |
tree | e5dc4283665daeb149dc95777c8d87e1b1d0faa0 /src/newgrf.cpp | |
parent | 50ca901b40664453fe90a396577e6438fd45dc27 (diff) | |
download | openttd-08c21c0c61be2e6e19517559288f3f40b77c0f0f.tar.xz |
(svn r8429) -Codechange: Add a name for AircraftVehicleInfo subtype helicopter and remove some magic numbers related to the subtype.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index cc1a2a05d..b8fda928d 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -745,15 +745,15 @@ static bool AircraftVehicleChangeInfo(uint engine, int numinfo, int prop, byte * case 0x09: /* Helicopter */ FOR_EACH_OBJECT { if (grf_load_byte(&buf) == 0) { - avi[i].subtype = 0; + avi[i].subtype = AIR_HELI; } else { - SB(avi[i].subtype, 0, 1, 1); + SB(avi[i].subtype, 0, 1, 1); // AIR_CTOL } } break; case 0x0A: /* Large */ - FOR_EACH_OBJECT SB(avi[i].subtype, 1, 1, (grf_load_byte(&buf) != 0 ? 1 : 0)); + FOR_EACH_OBJECT SB(avi[i].subtype, 1, 1, (grf_load_byte(&buf) != 0 ? 1 : 0)); // AIR_FAST break; case 0x0B: /* Cost factor */ |