diff options
author | smatz <smatz@openttd.org> | 2008-01-06 11:39:40 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-01-06 11:39:40 +0000 |
commit | f7a293f074ae5f47e9cf93735c3b99f09f597b1e (patch) | |
tree | 28652531113897c97e9db22af279d44f683b9dfb | |
parent | f9a592cfddb1e55c9819906c780059a56c3e9f9b (diff) | |
download | openttd-f7a293f074ae5f47e9cf93735c3b99f09f597b1e.tar.xz |
(svn r11767) -Fix: do not call rail specific functions when building road bridge
-Fix: missing space in terraform_gui.cpp
-rw-r--r-- | src/terraform_gui.cpp | 2 | ||||
-rw-r--r-- | 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); |