(svn r4377) -Add and make use of a function that finds out whether a signal is an entry or and exit signal to a presignal block (as combos act as both)
This commit is contained in:
10
rail_map.h
10
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,
|
||||
|
||||
Reference in New Issue
Block a user