Change: Extend rail types to 64 (6 bit storage)

This commit is contained in:
Peter Nelson
2018-07-23 00:05:23 +01:00
committed by PeterN
parent 5db883fbe9
commit bf8d7df736
11 changed files with 58 additions and 58 deletions

View File

@@ -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);
}