Fix being able to add signals to bridge with junction custom bridge head at far end
This commit is contained in:
@@ -1195,9 +1195,9 @@ CommandCost CmdBuildSingleSignal(TileIndex tile, DoCommandFlag flags, uint32 p1,
|
|||||||
CommandCost cost;
|
CommandCost cost;
|
||||||
/* handle signals simulation on tunnel/bridge. */
|
/* handle signals simulation on tunnel/bridge. */
|
||||||
if (IsTileType(tile, MP_TUNNELBRIDGE)) {
|
if (IsTileType(tile, MP_TUNNELBRIDGE)) {
|
||||||
if (TracksOverlap(GetTunnelBridgeTrackBits(tile))) return_cmd_error(STR_ERROR_NO_SUITABLE_RAILROAD_TRACK);
|
|
||||||
bool bidirectional = HasBit(p1, 18) && (sigtype == SIGTYPE_PBS);
|
|
||||||
TileIndex tile_exit = GetOtherTunnelBridgeEnd(tile);
|
TileIndex tile_exit = GetOtherTunnelBridgeEnd(tile);
|
||||||
|
if (TracksOverlap(GetTunnelBridgeTrackBits(tile)) || TracksOverlap(GetTunnelBridgeTrackBits(tile_exit))) return_cmd_error(STR_ERROR_NO_SUITABLE_RAILROAD_TRACK);
|
||||||
|
bool bidirectional = HasBit(p1, 18) && (sigtype == SIGTYPE_PBS);
|
||||||
cost = CommandCost();
|
cost = CommandCost();
|
||||||
bool flip_variant = false;
|
bool flip_variant = false;
|
||||||
bool is_pbs = (sigtype == SIGTYPE_PBS) || (sigtype == SIGTYPE_PBS_ONEWAY);
|
bool is_pbs = (sigtype == SIGTYPE_PBS) || (sigtype == SIGTYPE_PBS_ONEWAY);
|
||||||
|
Reference in New Issue
Block a user