diff options
author | celestar <celestar@openttd.org> | 2006-04-12 08:28:03 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-04-12 08:28:03 +0000 |
commit | e79c36bf8c91fb53d092b7d4b94b5ed591b44710 (patch) | |
tree | e8c2d2e726c1585d8c76948b78e492631a8be2c6 /rail_cmd.c | |
parent | a8d4285ec28571394a38f7f17fdaa812fa505c8d (diff) | |
download | openttd-e79c36bf8c91fb53d092b7d4b94b5ed591b44710.tar.xz |
(svn r4376) -Codechange Renamed GetSignalState to GetSignalStateByTrackdir
Diffstat (limited to 'rail_cmd.c')
-rw-r--r-- | rail_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rail_cmd.c b/rail_cmd.c index 577f82b6b..ba6e4d16b 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -1504,7 +1504,7 @@ static bool SetSignalsEnumProc(TileIndex tile, SetSignalsData *ssd, int track, u if (HasSignalOnTrackdir(tile, track) && _m[tile].m4 & 2) { // this is an exit signal that points out from the segment ssd->presignal_exits++; - if (GetSignalState(tile, track) != SIGNAL_STATE_RED) + if (GetSignalStateByTrackdir(tile, track) != SIGNAL_STATE_RED) ssd->presignal_exits_free++; } @@ -1653,7 +1653,7 @@ static void ChangeSignalStates(SetSignalsData *ssd) // subtract for dual combo signals so they don't count themselves if (_m[tile].m4 & 2 && HasSignalOnTrackdir(tile, ssd->bit[i])) { ex--; - if (GetSignalState(tile, ssd->bit[i]) != SIGNAL_STATE_RED) exfree--; + if (GetSignalStateByTrackdir(tile, ssd->bit[i]) != SIGNAL_STATE_RED) exfree--; } // if we have exits and none are free, make red. |