(svn r24367) -Feature: [NewGRF] Customisable signals for rail types.

This commit is contained in:
michi_cc
2012-07-01 23:12:50 +00:00
parent a6244ed0dc
commit b0d21d2fad
7 changed files with 89 additions and 55 deletions

View File

@@ -345,16 +345,6 @@ static inline void SetSignalVariant(TileIndex t, Track track, SignalVariant v)
if (track == INVALID_TRACK) SB(_m[t].m2, 7, 1, v);
}
/**
* These are states in which a signal can be. Currently these are only two, so
* simple boolean logic will do. But do try to compare to this enum instead of
* normal boolean evaluation, since that will make future additions easier.
*/
enum SignalState {
SIGNAL_STATE_RED = 0, ///< The signal is red
SIGNAL_STATE_GREEN = 1, ///< The signal is green
};
/**
* Set the states of the signals (Along/AgainstTrackDir)
* @param tile the tile to set the states for