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
commit741fc265225e879d77515d14f056c8969f6fde82 (patch)
tree5d55a4f5db80674d8bee645029acf2132b708c08 /engine.h
parent4367870b18782051c9262e7d599341749c2206fa (diff)
downloadopenttd-741fc265225e879d77515d14f056c8969f6fde82.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,