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/station_cmd.cpp | |
parent | 5db883fbe9b8ef6171bfafc145a80932c3920504 (diff) | |
download | openttd-bf8d7df7367055dcfad6cc1c21fd9c762ffc2fe4.tar.xz |
Change: Extend rail types to 64 (6 bit storage)
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 07db05856..6dd7bb2fd 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1173,8 +1173,8 @@ static void RestoreTrainReservation(Train *v) * @param tile_org northern most position of station dragging/placement * @param flags operation to perform * @param p1 various bitstuffed elements - * - p1 = (bit 0- 3) - railtype - * - p1 = (bit 4) - orientation (Axis) + * - p1 = (bit 0- 5) - railtype + * - p1 = (bit 6) - orientation (Axis) * - p1 = (bit 8-15) - number of tracks * - p1 = (bit 16-23) - platform length * - p1 = (bit 24) - allow stations directly adjacent to other stations. @@ -1188,8 +1188,8 @@ static void RestoreTrainReservation(Train *v) CommandCost CmdBuildRailStation(TileIndex tile_org, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text) { /* Unpack parameters */ - RailType rt = Extract<RailType, 0, 4>(p1); - Axis axis = Extract<Axis, 4, 1>(p1); + RailType rt = Extract<RailType, 0, 6>(p1); + Axis axis = Extract<Axis, 6, 1>(p1); byte numtracks = GB(p1, 8, 8); byte plat_len = GB(p1, 16, 8); bool adjacent = HasBit(p1, 24); |