diff options
author | frosch <frosch@openttd.org> | 2010-04-13 17:29:19 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-04-13 17:29:19 +0000 |
commit | b76f0185d4064a4c44c6030976213dffe4493873 (patch) | |
tree | 413acf0fce33ac4b415708b78bb478275601612d /src/station_cmd.cpp | |
parent | 7ba4f98ce571814d2d1ec647f4175c4ba1df0643 (diff) | |
download | openttd-b76f0185d4064a4c44c6030976213dffe4493873.tar.xz |
(svn r19616) -Codechange: Increase transparency of 'Extract' by passing also the number of used bits.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index a996ff5cd..060b66bf6 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1096,7 +1096,7 @@ CommandCost CmdBuildRailStation(TileIndex tile_org, DoCommandFlag flags, uint32 { /* Unpack parameters */ RailType rt = (RailType)GB(p1, 0, 4); - Axis axis = Extract<Axis, 4>(p1); + Axis axis = Extract<Axis, 4, 1>(p1); byte numtracks = GB(p1, 8, 8); byte plat_len = GB(p1, 16, 8); bool adjacent = HasBit(p1, 24); |