(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:
celestar
2006-04-12 09:12:33 +00:00
parent e79c36bf8c
commit 5ae9a03a1f
2 changed files with 15 additions and 5 deletions

View File

@@ -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,