summaryrefslogtreecommitdiff
path: root/src/signal.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-18 04:54:09 +0000
committerrubidium <rubidium@openttd.org>2008-04-18 04:54:09 +0000
commitacafc26426f7725d519815ea25d6edddc67b3fa2 (patch)
treed7125c8c858791939606b0bc9eec620bb3d141d9 /src/signal.cpp
parent9d8fa486af824039fae197212d83365242511da5 (diff)
downloadopenttd-acafc26426f7725d519815ea25d6edddc67b3fa2.tar.xz
(svn r12762) -Fix: tabs after the first non-tab character are generally not okay (or lines starting with a space and then tabs).
Diffstat (limited to 'src/signal.cpp')
-rw-r--r--src/signal.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/signal.cpp b/src/signal.cpp
index 544ebc5d2..03747eefe 100644
--- a/src/signal.cpp
+++ b/src/signal.cpp
@@ -422,11 +422,11 @@ static void UpdateSignalsAroundSegment(SigFlags flags)
/* train in the segment */
newstate = SIGNAL_STATE_RED;
} else {
- /* is it a bidir combo? - then do not count its other signal direction as exit */
+ /* is it a bidir combo? - then do not count its other signal direction as exit */
if (sig == SIGTYPE_COMBO && HasSignalOnTrackdir(tile, ReverseTrackdir(trackdir))) {
/* at least one more exit */
if (flags & SF_EXIT2 &&
- /* no green exit */
+ /* no green exit */
(!(flags & SF_GREEN) ||
/* only one green exit, and it is this one - so all other exits are red */
(!(flags & SF_GREEN2) && GetSignalStateByTrackdir(tile, ReverseTrackdir(trackdir)) == SIGNAL_STATE_GREEN))) {
@@ -507,7 +507,7 @@ static bool UpdateSignalsInBuffer(Owner owner)
case MP_STATION:
case MP_ROAD:
if ((TrackStatusToTrackBits(GetTileTrackStatus(tile, TRANSPORT_RAIL, 0)) & _enterdir_to_trackbits[dir]) != TRACK_BIT_NONE) {
- /* only add to set when there is some 'interesting' track */
+ /* only add to set when there is some 'interesting' track */
_tbdset.Add(tile, dir);
_tbdset.Add(tile + TileOffsByDiagDir(dir), ReverseDiagDir(dir));
break;