summaryrefslogtreecommitdiff
path: root/src/tunnelbridge_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-09-14 19:36:31 +0000
committerrubidium <rubidium@openttd.org>2008-09-14 19:36:31 +0000
commitc70f745de852ad4850cdefd0f44aa4f953fef94d (patch)
treed16338efa14c83560088413740253a0f577a3502 /src/tunnelbridge_cmd.cpp
parent775fd4797bdb7e76102ffdbd2935b6b6cdec24ec (diff)
downloadopenttd-c70f745de852ad4850cdefd0f44aa4f953fef94d.tar.xz
(svn r14326) -Fix: some wrong comments (Yexo)
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r--src/tunnelbridge_cmd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index 9abe9435f..914625237 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -182,9 +182,9 @@ bool CheckBridge_Stuff(BridgeType bridge_type, uint bridge_len, uint32 flags)
* @param flags type of operation
* @param p1 packed start tile coords (~ dx)
* @param p2 various bitstuffed elements
- * - p2 = (bit 0- 7) - bridge type (hi bh)
- * - p2 = (bit 8-..) - rail type or road types.
- * - p2 = (bit 15 ) - set means road bridge.
+ * - p2 = (bit 0- 7) - bridge type (hi bh)
+ * - p2 = (bit 8-14) - rail type or road types.
+ * - p2 = (bit 15-16) - transport type.
*/
CommandCost CmdBuildBridge(TileIndex end_tile, uint32 flags, uint32 p1, uint32 p2)
{
@@ -226,7 +226,7 @@ CommandCost CmdBuildBridge(TileIndex end_tile, uint32 flags, uint32 p1, uint32 p
break;
case TRANSPORT_RAIL:
- railtype = (RailType)GB(p2, 8, 8);
+ railtype = (RailType)GB(p2, 8, 7);
if (!ValParamRailtype(railtype)) return CMD_ERROR;
break;