Mercurial > hg > openttd
changeset 8558:bc669f2aca8c draft
(svn r12136) -Fix(r12135): Code style compliance and... code style as such
author | belugas <belugas@openttd.org> |
---|---|
date | Thu, 14 Feb 2008 03:10:22 +0000 |
parents | b78d027fd703 |
children | 9a7fcf9f807f |
files | src/bridge_gui.cpp src/gui.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bridge_gui.cpp +++ b/src/bridge_gui.cpp @@ -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 +++ b/src/gui.h @@ -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();