diff options
author | tron <tron@openttd.org> | 2005-10-18 11:23:58 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-18 11:23:58 +0000 |
commit | f3de17256046ed3286ba17d130c7701a8729ac16 (patch) | |
tree | 000f00442c2db76662d897b20b8ca8d16bb0a4ba /engine.h | |
parent | d4752ba0da4c6387020167b3acee938ed14d9a66 (diff) | |
download | openttd-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 { |