summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-02-14 03:10:22 +0000
committerbelugas <belugas@openttd.org>2008-02-14 03:10:22 +0000
commita36e666ca5bfc8699d3ebcb7d7302136f454dc4c (patch)
treea64cb6f66b1fa1206c299ebfcc9b24258738bcc2 /src
parent81b47a628f47d5844c566a4bdad00263ee3a4cdd (diff)
downloadopenttd-a36e666ca5bfc8699d3ebcb7d7302136f454dc4c.tar.xz
(svn r12136) -Fix(r12135): Code style compliance and... code style as such
Diffstat (limited to 'src')
-rw-r--r--src/bridge_gui.cpp2
-rw-r--r--src/gui.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bridge_gui.cpp b/src/bridge_gui.cpp
index d1baacdf0..b18582e9b 100644
--- a/src/bridge_gui.cpp
+++ b/src/bridge_gui.cpp
@@ -147,7 +147,7 @@ void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transpo
{
DeleteWindowById(WC_BUILD_BRIDGE, 0);
- _bridgedata.type = ((transport_type << 7) | bridge_type) << 8; //prepare the parameter for use only once
+ _bridgedata.type = (transport_type << 15) | (bridge_type << 8); //prepare the parameter for use only once
_bridgedata.start_tile = start;
_bridgedata.end_tile = end;
diff --git a/src/gui.h b/src/gui.h
index b361409f3..ab93aec7a 100644
--- a/src/gui.h
+++ b/src/gui.h
@@ -106,7 +106,7 @@ void SetFiosType(const byte fiostype);
extern const TextColour _fios_colors[];
/* bridge_gui.cpp */
-void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType Transport_type, byte type);
+void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type);
void ShowBuildIndustryWindow();
void ShowMusicWindow();