Mercurial > hg > openttd
diff src/signal.cpp @ 8970:3667cbc7dc1d draft
(svn r12762) -Fix: tabs after the first non-tab character are generally not okay (or lines starting with a space and then tabs).
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 18 Apr 2008 04:54:09 +0000 (2008-04-18) |
parents | 9e46ac001a8c |
children | 6ad7fc7fbcaf |
line wrap: on
line diff
--- a/src/signal.cpp +++ b/src/signal.cpp @@ -422,11 +422,11 @@ /* 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 @@ 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;