Debug: Show if signal is always reserve through

This commit is contained in:
Jonathan G Rennison 2023-12-30 13:58:37 +00:00
parent 099a7bdd3a
commit 00a0853550

View File

@ -1329,6 +1329,7 @@ void DumpTileSignalsInfo(char *buffer, const char *last, uint index, NIExtraInfo
const SignalState state = GetSignalStateByTrackdir(index, td);
b += seprintf(b, last, " trackdir: %d, state: %d", td, state);
if (_extra_aspects > 0 && state == SIGNAL_STATE_GREEN) seprintf(b, last, ", aspect: %d", GetSignalAspect(index, TrackdirToTrack(td)));
if (GetSignalAlwaysReserveThrough(index, TrackdirToTrack(td))) seprintf(b, last, ", always reserve through");
output.print(buffer);
}
}