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/water_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/water_cmd.cpp')
-rw-r--r-- | src/water_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index 1216fb213..4b80d0cd4 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -104,7 +104,7 @@ static void MarkCanalsAndRiversAroundDirty(TileIndex tile) */ CommandCost CmdBuildShipDepot(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text) { - Axis axis = Extract<Axis, 0>(p1); + Axis axis = Extract<Axis, 0, 1>(p1); TileIndex tile2 = tile + (axis == AXIS_X ? TileDiffXY(1, 0) : TileDiffXY(0, 1)); |