Add new signal type: no-entry signal

This is only passable in one direction, but does not have a signal
or show an aspect in the opposite direction

Add a setting for whether this is shown in the signal UI.
Off by default.
This commit is contained in:
Jonathan G Rennison
2021-09-04 03:14:09 +01:00
parent b3aa59c85d
commit 5d351a14d2
31 changed files with 256 additions and 31 deletions

View File

@@ -774,7 +774,7 @@ static void UpdateSignalsAroundSegment(SigInfo info)
}
/* determine whether the new state is red */
if (info.flags & SF_TRAIN) {
if (info.flags & SF_TRAIN || sig == SIGTYPE_NO_ENTRY) {
/* train in the segment */
newstate = SIGNAL_STATE_RED;
} else if (sig == SIGTYPE_PROG &&