diff options
Diffstat (limited to 'rail_map.h')
-rw-r--r-- | rail_map.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rail_map.h b/rail_map.h index 850a56c54..da72d0250 100644 --- a/rail_map.h +++ b/rail_map.h @@ -164,6 +164,16 @@ static inline void SetSignalType(TileIndex t, SignalType s) SB(_m[t].m4, 0, 2, s); } +static inline bool IsPresignalEntry(TileIndex t) +{ + return GetSignalType(t) == SIGTYPE_ENTRY || GetSignalType(t) == SIGTYPE_COMBO; +} + +static inline bool IsPresignalExit(TileIndex t) +{ + return GetSignalType(t) == SIGTYPE_EXIT || GetSignalType(t) == SIGTYPE_COMBO; +} + typedef enum SignalVariant { SIG_ELECTRIC = 0, |