(svn r13933) -Codechange [YAPP]: Handle through and PBS signals correctly in the signal code. (michi_cc)

This commit is contained in:
rubidium
2008-08-02 22:48:57 +00:00
parent fe4f23dba2
commit d6645818b4
3 changed files with 26 additions and 11 deletions

View File

@@ -368,6 +368,12 @@ static inline bool IsPresignalExit(TileIndex t, Track track)
return GetSignalType(t, track) == SIGTYPE_EXIT || GetSignalType(t, track) == SIGTYPE_COMBO;
}
/** One-way signals can't be passed the 'wrong' way. */
static inline bool IsOnewaySignal(TileIndex t, Track track)
{
return GetSignalType(t, track) != SIGTYPE_PBS;
}
static inline void CycleSignalSide(TileIndex t, Track track)
{
byte sig;