mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(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)
This commit is contained in:
parent
e50478c053
commit
15ebb29447
@ -262,7 +262,7 @@ static void PlaceRail_Bridge(TileIndex tile, Window *w)
|
|||||||
if (IsBridgeTile(tile)) {
|
if (IsBridgeTile(tile)) {
|
||||||
TileIndex other_tile = GetOtherTunnelBridgeEnd(tile);
|
TileIndex other_tile = GetOtherTunnelBridgeEnd(tile);
|
||||||
Point pt = {0, 0};
|
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 {
|
} else {
|
||||||
VpStartPlaceSizing(tile, VPM_X_OR_Y, DDSP_BUILD_BRIDGE);
|
VpStartPlaceSizing(tile, VPM_X_OR_Y, DDSP_BUILD_BRIDGE);
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ static void PlaceRoad_Bridge(TileIndex tile, Window *w)
|
|||||||
if (IsBridgeTile(tile)) {
|
if (IsBridgeTile(tile)) {
|
||||||
TileIndex other_tile = GetOtherTunnelBridgeEnd(tile);
|
TileIndex other_tile = GetOtherTunnelBridgeEnd(tile);
|
||||||
Point pt = {0, 0};
|
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 {
|
} else {
|
||||||
VpStartPlaceSizing(tile, VPM_X_OR_Y, DDSP_BUILD_BRIDGE);
|
VpStartPlaceSizing(tile, VPM_X_OR_Y, DDSP_BUILD_BRIDGE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user