(svn r12136) -Fix(r12135): Code style compliance and... code style as such
authorbelugas
Thu, 14 Feb 2008 03:10:22 +0000
changeset 8558 2f50ad3af2a9
parent 8557 d5fb341fc220
child 8559 e51166aff0b2
(svn r12136) -Fix(r12135): Code style compliance and... code style as such
src/bridge_gui.cpp
src/gui.h
--- a/src/bridge_gui.cpp	Thu Feb 14 02:57:38 2008 +0000
+++ b/src/bridge_gui.cpp	Thu Feb 14 03:10:22 2008 +0000
@@ -147,7 +147,7 @@
 {
 	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;
 
--- a/src/gui.h	Thu Feb 14 02:57:38 2008 +0000
+++ b/src/gui.h	Thu Feb 14 03:10:22 2008 +0000
@@ -106,7 +106,7 @@
 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();