summaryrefslogtreecommitdiff
path: root/src/engine.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2007-01-27 12:45:55 +0000
committerDarkvater <Darkvater@openttd.org>2007-01-27 12:45:55 +0000
commitfa0b625552a45bfa087fd1ee88622d0556c69b85 (patch)
treee5dc4283665daeb149dc95777c8d87e1b1d0faa0 /src/engine.h
parent2ff4492abc0a131613a4ec983f862a30b0781029 (diff)
downloadopenttd-fa0b625552a45bfa087fd1ee88622d0556c69b85.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/engine.h')
-rw-r--r--src/engine.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine.h b/src/engine.h
index 3b70256a2..375fe1d10 100644
--- a/src/engine.h
+++ b/src/engine.h
@@ -45,8 +45,11 @@ typedef struct ShipVehicleInfo {
bool refittable;
} ShipVehicleInfo;
-/* AircraftVehicleInfo subtypes */
+/* AircraftVehicleInfo subtypes, bitmask type.
+ * If bit 0 is 0 then it is a helicopter, otherwise it is a plane
+ * in which case bit 1 tells us whether it's a big(fast) plane or not */
enum {
+ AIR_HELI = 0,
AIR_CTOL = 1, // Conventional Take Off and Landing, i.e. planes
AIR_FAST = 2
};