diff options
author | zuu <zuu@openttd.org> | 2013-10-12 22:45:19 +0000 |
---|---|---|
committer | zuu <zuu@openttd.org> | 2013-10-12 22:45:19 +0000 |
commit | 15ebb2944713c7da1b7eb64189238c10c0d025fb (patch) | |
tree | 41d8c34df0a8a1c6da0f34276537e47796d4e509 /src | |
parent | e50478c053acfffcad98547bf265ff3ada77a33e (diff) | |
download | openttd-15ebb2944713c7da1b7eb64189238c10c0d025fb.tar.xz |
(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)
Diffstat (limited to 'src')
-rw-r--r-- | src/rail_gui.cpp | 2 | ||||
-rw-r--r-- | src/road_gui.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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); } |