summaryrefslogtreecommitdiff
path: root/src/rail_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-04-13 17:29:19 +0000
committerfrosch <frosch@openttd.org>2010-04-13 17:29:19 +0000
commitb76f0185d4064a4c44c6030976213dffe4493873 (patch)
tree413acf0fce33ac4b415708b78bb478275601612d /src/rail_cmd.cpp
parent7ba4f98ce571814d2d1ec647f4175c4ba1df0643 (diff)
downloadopenttd-b76f0185d4064a4c44c6030976213dffe4493873.tar.xz
(svn r19616) -Codechange: Increase transparency of 'Extract' by passing also the number of used bits.
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r--src/rail_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index e0f85675c..f90be4125 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -837,7 +837,7 @@ CommandCost CmdBuildTrainDepot(TileIndex tile, DoCommandFlag flags, uint32 p1, u
Slope tileh = GetTileSlope(tile, NULL);
- DiagDirection dir = Extract<DiagDirection, 0>(p2);
+ DiagDirection dir = Extract<DiagDirection, 0, 2>(p2);
/* Prohibit construction if
* The tile is non-flat AND