mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Codechange: make SignalType a scoped enum
This commit is contained in:
committed by
Peter Nelson
parent
e97e182630
commit
231d946624
+1
-1
@@ -419,7 +419,7 @@ bool IsSafeWaitingPosition(const Train *v, TileIndex tile, Trackdir trackdir, bo
|
||||
if (HasPbsSignalOnTrackdir(ft.new_tile, td)) return true;
|
||||
/* One-way PBS signal against us? Safe if end-of-line is allowed. */
|
||||
if (IsTileType(ft.new_tile, TileType::Railway) && HasSignalOnTrackdir(ft.new_tile, ReverseTrackdir(td)) &&
|
||||
GetSignalType(ft.new_tile, TrackdirToTrack(td)) == SIGTYPE_PBS_ONEWAY) {
|
||||
GetSignalType(ft.new_tile, TrackdirToTrack(td)) == SignalType::PathOneWay) {
|
||||
return include_line_end;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user