diff options
author | Peter Nelson <peter1138@openttd.org> | 2018-07-23 00:05:23 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2018-07-26 13:27:40 +0100 |
commit | bf8d7df7367055dcfad6cc1c21fd9c762ffc2fe4 (patch) | |
tree | 8fe03509c7d1ef6ef092521632e2cc32a36e3287 /src/rail_map.h | |
parent | 5db883fbe9b8ef6171bfafc145a80932c3920504 (diff) | |
download | openttd-bf8d7df7367055dcfad6cc1c21fd9c762ffc2fe4.tar.xz |
Change: Extend rail types to 64 (6 bit storage)
Diffstat (limited to 'src/rail_map.h')
-rw-r--r-- | src/rail_map.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rail_map.h b/src/rail_map.h index bd580d32a..74afe5ace 100644 --- a/src/rail_map.h +++ b/src/rail_map.h @@ -115,7 +115,7 @@ static inline bool IsRailDepotTile(TileIndex t) */ static inline RailType GetRailType(TileIndex t) { - return (RailType)GB(_me[t].m8, 0, 4); + return (RailType)GB(_me[t].m8, 0, 6); } /** @@ -125,7 +125,7 @@ static inline RailType GetRailType(TileIndex t) */ static inline void SetRailType(TileIndex t, RailType r) { - SB(_me[t].m8, 0, 4, r); + SB(_me[t].m8, 0, 6, r); } |