summaryrefslogtreecommitdiff
path: root/engine.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-03-01 23:14:03 +0000
committerpeter1138 <peter1138@openttd.org>2006-03-01 23:14:03 +0000
commit058ccfb1578d0568dc2fdbd65c1c4b957c9a4cfd (patch)
tree5d55a4f5db80674d8bee645029acf2132b708c08 /engine.h
parente8cf6ec8fdaf088c1786746630cec1b084e9b344 (diff)
downloadopenttd-058ccfb1578d0568dc2fdbd65c1c4b957c9a4cfd.tar.xz
(svn r3717) - [2cc] Add 2cc colour maps and use for newgrf engines requiring them. Currently the second colour is fixed to be the player's colour.
Diffstat (limited to 'engine.h')
-rw-r--r--engine.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/engine.h b/engine.h
index 637e9f649..14e21f311 100644
--- a/engine.h
+++ b/engine.h
@@ -98,6 +98,15 @@ typedef struct Engine {
byte type; // type, ie VEH_Road, VEH_Train, etc. Same as in vehicle.h
} Engine;
+/**
+ * EngineInfo.misc_flags is a bitmask, with the following values
+ */
+enum {
+ EF_RAIL_TILTS = 0, ///< Rail vehicle tilts in curves (unsupported)
+ EF_ROAD_TRAM = 0, ///< Road vehicle is a tram/light rail vehicle (unsup)
+ EF_USES_2CC = 1, ///< Vehicle uses two company colours
+ EF_RAIL_IS_MU = 2, ///< Rail vehicle is a multiple-unit (DMU/EMU)
+};
enum {
RVI_MULTIHEAD = 1,