From 15ebb2944713c7da1b7eb64189238c10c0d025fb Mon Sep 17 00:00:00 2001 From: zuu Date: Sat, 12 Oct 2013 22:45:19 +0000 Subject: (svn r25854) -Change: Display the cost to upgrade a bridge at the end of bridge that was clicked and not the other end, which could be outside of the screen in some cases (cirdan, LordAro) --- src/rail_gui.cpp | 2 +- src/road_gui.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 61c29e1e1..69b15e085 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -262,7 +262,7 @@ static void PlaceRail_Bridge(TileIndex tile, Window *w) if (IsBridgeTile(tile)) { TileIndex other_tile = GetOtherTunnelBridgeEnd(tile); Point pt = {0, 0}; - w->OnPlaceMouseUp(VPM_X_OR_Y, DDSP_BUILD_BRIDGE, pt, tile, other_tile); + w->OnPlaceMouseUp(VPM_X_OR_Y, DDSP_BUILD_BRIDGE, pt, other_tile, tile); } else { VpStartPlaceSizing(tile, VPM_X_OR_Y, DDSP_BUILD_BRIDGE); } diff --git a/src/road_gui.cpp b/src/road_gui.cpp index 388033382..a35dab23c 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -75,7 +75,7 @@ static void PlaceRoad_Bridge(TileIndex tile, Window *w) if (IsBridgeTile(tile)) { TileIndex other_tile = GetOtherTunnelBridgeEnd(tile); Point pt = {0, 0}; - w->OnPlaceMouseUp(VPM_X_OR_Y, DDSP_BUILD_BRIDGE, pt, tile, other_tile); + w->OnPlaceMouseUp(VPM_X_OR_Y, DDSP_BUILD_BRIDGE, pt, other_tile, tile); } else { VpStartPlaceSizing(tile, VPM_X_OR_Y, DDSP_BUILD_BRIDGE); } -- cgit v1.2.3-54-g00ecf