Enable bridge/tunnel exit signals to be one-way PBS.
Add signal conversion support.
This commit is contained in:
@@ -237,4 +237,16 @@ static inline void SetTunnelBridgeSemaphore(TileIndex t, bool is_semaphore)
|
||||
SB(_me[t].m6, 1, 1, is_semaphore ? 1 : 0);
|
||||
}
|
||||
|
||||
static inline bool IsTunnelBridgePBS(TileIndex t)
|
||||
{
|
||||
assert(IsTileType(t, MP_TUNNELBRIDGE) && HasWormholeSignals(t));
|
||||
return HasBit(_me[t].m6, 6);
|
||||
}
|
||||
|
||||
static inline void SetTunnelBridgePBS(TileIndex t, bool is_pbs)
|
||||
{
|
||||
assert(IsTileType(t, MP_TUNNELBRIDGE) && HasWormholeSignals(t));
|
||||
SB(_me[t].m6, 6, 1, is_pbs ? 1 : 0);
|
||||
}
|
||||
|
||||
#endif /* TUNNELBRIDGE_MAP_H */
|
||||
|
||||
Reference in New Issue
Block a user