mirror of https://github.com/OpenTTD/OpenTTD
(svn r11767) -Fix: do not call rail specific functions when building road bridge
-Fix: missing space in terraform_gui.cpprelease/0.6
parent
f9a592cfdd
commit
f7a293f074
|
@ -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));
|
DoCommandP(end_tile, start_tile, 0, CcPlaySound10, CMD_CLEAR_AREA | CMD_MSG(STR_00B5_CAN_T_CLEAR_THIS_AREA));
|
||||||
break;
|
break;
|
||||||
case DDSP_RAISE_AND_LEVEL_AREA:
|
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;
|
break;
|
||||||
case DDSP_LOWER_AND_LEVEL_AREA:
|
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));
|
DoCommandP(end_tile, start_tile, (uint32)-1, CcTerraform, CMD_LEVEL_LAND | CMD_MSG(STR_0809_CAN_T_LOWER_LAND_HERE));
|
||||||
|
|
|
@ -418,7 +418,7 @@ not_valid_below:;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flags & DC_EXEC) {
|
if (flags & DC_EXEC && railtype != INVALID_RAILTYPE) {
|
||||||
Track track = AxisToTrack(direction);
|
Track track = AxisToTrack(direction);
|
||||||
SetSignalsOnBothDir(tile_start, track);
|
SetSignalsOnBothDir(tile_start, track);
|
||||||
YapfNotifyTrackLayoutChange(tile_start, track);
|
YapfNotifyTrackLayoutChange(tile_start, track);
|
||||||
|
|
Loading…
Reference in New Issue