From f7a293f074ae5f47e9cf93735c3b99f09f597b1e Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 6 Jan 2008 11:39:40 +0000 Subject: (svn r11767) -Fix: do not call rail specific functions when building road bridge -Fix: missing space in terraform_gui.cpp --- src/terraform_gui.cpp | 2 +- src/tunnelbridge_cmd.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp index 4ca40c9fd..a80912af5 100644 --- a/src/terraform_gui.cpp +++ b/src/terraform_gui.cpp @@ -106,7 +106,7 @@ bool GUIPlaceProcDragXY(const WindowEvent *e) DoCommandP(end_tile, start_tile, 0, CcPlaySound10, CMD_CLEAR_AREA | CMD_MSG(STR_00B5_CAN_T_CLEAR_THIS_AREA)); break; case DDSP_RAISE_AND_LEVEL_AREA: - DoCommandP(end_tile, start_tile, 1, CcTerraform, CMD_LEVEL_LAND| CMD_MSG(STR_0808_CAN_T_RAISE_LAND_HERE)); + DoCommandP(end_tile, start_tile, 1, CcTerraform, CMD_LEVEL_LAND | CMD_MSG(STR_0808_CAN_T_RAISE_LAND_HERE)); break; case DDSP_LOWER_AND_LEVEL_AREA: DoCommandP(end_tile, start_tile, (uint32)-1, CcTerraform, CMD_LEVEL_LAND | CMD_MSG(STR_0809_CAN_T_LOWER_LAND_HERE)); diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index d1512baef..b04e1f729 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -418,7 +418,7 @@ not_valid_below:; } } - if (flags & DC_EXEC) { + if (flags & DC_EXEC && railtype != INVALID_RAILTYPE) { Track track = AxisToTrack(direction); SetSignalsOnBothDir(tile_start, track); YapfNotifyTrackLayoutChange(tile_start, track); -- cgit v1.2.3-70-g09d2