summaryrefslogtreecommitdiff
path: root/engine.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-18 11:23:58 +0000
committertron <tron@openttd.org>2005-10-18 11:23:58 +0000
commitf3de17256046ed3286ba17d130c7701a8729ac16 (patch)
tree000f00442c2db76662d897b20b8ca8d16bb0a4ba /engine.h
parentd4752ba0da4c6387020167b3acee938ed14d9a66 (diff)
downloadopenttd-f3de17256046ed3286ba17d130c7701a8729ac16.tar.xz
(svn r3059) Use bitfields to encode railtype and climates of engines instead of manual shifting/anding
Diffstat (limited to 'engine.h')
-rw-r--r--engine.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine.h b/engine.h
index 4fbb3aa33..30c4acfa2 100644
--- a/engine.h
+++ b/engine.h
@@ -70,7 +70,8 @@ typedef struct EngineInfo {
byte unk2; ///< Carriages have the highest bit set in this one
byte lifelength;
byte base_life;
- byte railtype_climates; ///< contains the railtype in the lower four bits, and a mask to the climates where the vehicle is available in the upper four
+ byte railtype:4;
+ byte climates:4;
} EngineInfo;
typedef struct Engine {