summaryrefslogtreecommitdiff
path: root/engine.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2004-12-28 17:18:46 +0000
committerbjarni <bjarni@openttd.org>2004-12-28 17:18:46 +0000
commitc4d073a4dedb9c8eca7b25a226703833b04c0266 (patch)
treecf66d4d813a26e378cfc675dff16f4bed5680147 /engine.h
parent5b8c604f47d4f8a121d9d87ea586e54ecf23ec41 (diff)
downloadopenttd-c4d073a4dedb9c8eca7b25a226703833b04c0266.tar.xz
(svn r1290) Added type to typedef struct Engine and filled in the same data as in type in vehicle
it was kind of lame that you should use AircraftVehInfo(), ShipVehInfo() etc. if you wanted to know what type the engine is
Diffstat (limited to 'engine.h')
-rw-r--r--engine.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine.h b/engine.h
index 56b7d9572..7ed1fe6c5 100644
--- a/engine.h
+++ b/engine.h
@@ -70,6 +70,7 @@ typedef struct Engine {
byte preview_wait;
byte railtype;
byte player_avail;
+ byte type; // type, ie VEH_Road, VEH_Train, etc. Same as in vehicle.h
} Engine;