mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
Do not get one way states when building road stops on tram-only tiles
This commit is contained in:
parent
a90cbd837e
commit
36776248b9
@ -2214,10 +2214,12 @@ CommandCost CmdBuildRoadStop(TileIndex tile, DoCommandFlag flags, uint32_t p1, u
|
||||
Owner tram_owner = tram_rt != INVALID_ROADTYPE ? GetRoadOwner(cur_tile, RTT_TRAM) : _current_company;
|
||||
|
||||
DisallowedRoadDirections drd = DRD_NONE;
|
||||
if (IsNormalRoadTile(cur_tile)){
|
||||
drd = GetDisallowedRoadDirections(cur_tile);
|
||||
} else if (IsDriveThroughStopTile(cur_tile)) {
|
||||
drd = GetDriveThroughStopDisallowedRoadDirections(cur_tile);
|
||||
if (road_rt != INVALID_ROADTYPE) {
|
||||
if (IsNormalRoadTile(cur_tile)){
|
||||
drd = GetDisallowedRoadDirections(cur_tile);
|
||||
} else if (IsDriveThroughStopTile(cur_tile)) {
|
||||
drd = GetDriveThroughStopDisallowedRoadDirections(cur_tile);
|
||||
}
|
||||
}
|
||||
|
||||
if (IsTileType(cur_tile, MP_STATION) && IsAnyRoadStop(cur_tile)) {
|
||||
|
@ -464,10 +464,12 @@ CommandCost CmdBuildRoadWaypoint(TileIndex start_tile, DoCommandFlag flags, uint
|
||||
Owner tram_owner = tram_rt != INVALID_ROADTYPE ? GetRoadOwner(cur_tile, RTT_TRAM) : _current_company;
|
||||
|
||||
DisallowedRoadDirections drd = DRD_NONE;
|
||||
if (IsNormalRoadTile(cur_tile)){
|
||||
drd = GetDisallowedRoadDirections(cur_tile);
|
||||
} else if (IsDriveThroughStopTile(cur_tile)) {
|
||||
drd = GetDriveThroughStopDisallowedRoadDirections(cur_tile);
|
||||
if (road_rt != INVALID_ROADTYPE) {
|
||||
if (IsNormalRoadTile(cur_tile)){
|
||||
drd = GetDisallowedRoadDirections(cur_tile);
|
||||
} else if (IsDriveThroughStopTile(cur_tile)) {
|
||||
drd = GetDriveThroughStopDisallowedRoadDirections(cur_tile);
|
||||
}
|
||||
}
|
||||
|
||||
extern CommandCost RemoveRoadStop(TileIndex tile, DoCommandFlag flags, int replacement_spec_index);
|
||||
|
Loading…
Reference in New Issue
Block a user