(svn r11767) -Fix: do not call rail specific functions when building road bridge

-Fix: missing space in terraform_gui.cpp
This commit is contained in:
smatz 2008-01-06 11:39:40 +00:00
parent f9a592cfdd
commit f7a293f074
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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);