summaryrefslogtreecommitdiff
path: root/src/bridge_gui.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/bridge_gui.cpp
parent775fd4797bdb7e76102ffdbd2935b6b6cdec24ec (diff)
downloadopenttd-c70f745de852ad4850cdefd0f44aa4f953fef94d.tar.xz
(svn r14326) -Fix: some wrong comments (Yexo)
Diffstat (limited to 'src/bridge_gui.cpp')
-rw-r--r--src/bridge_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bridge_gui.cpp b/src/bridge_gui.cpp
index b650b9676..bb493f70c 100644
--- a/src/bridge_gui.cpp
+++ b/src/bridge_gui.cpp
@@ -275,17 +275,17 @@ static const WindowDesc _build_bridge_desc = {
* @parma start The start tile of the bridge
* @param end The end tile of the bridge
* @param transport_type The transport type
- * @param bridge_type The bridge type
+ * @param road_rail_type The road/rail type
*/
-void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type)
+void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte road_rail_type)
{
DeleteWindowById(WC_BUILD_BRIDGE, 0);
/* Data type for the bridge.
* Bit 16,15 = transport type,
- * 14..8 = road/rail pieces,
+ * 14..8 = road/rail types,
* 7..0 = type of bridge */
- uint32 type = (transport_type << 15) | (bridge_type << 8);
+ uint32 type = (transport_type << 15) | (road_rail_type << 8);
/* only query bridge building possibility once, result is the same for all bridges!
* returns CMD_ERROR on failure, and price on success */