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 | 24253c17cceadab0d30cef299f0ef0c669f5ecc1 (patch) | |
tree | 000f00442c2db76662d897b20b8ca8d16bb0a4ba /engine.h | |
parent | a85d68ed574f547af2ccaeec1ddaff589480598f (diff) | |
download | openttd-24253c17cceadab0d30cef299f0ef0c669f5ecc1.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 { |