Adjust signal speed restriction timeouts when date or day length changed
This commit is contained in:
@@ -122,6 +122,13 @@ void ClearAllSignalSpeedRestrictions()
|
||||
_signal_speeds.clear();
|
||||
}
|
||||
|
||||
void AdjustAllSignalSpeedRestrictionTickValues(DateTicksScaled delta)
|
||||
{
|
||||
for (auto &it : _signal_speeds) {
|
||||
it.second.time_stamp += delta;
|
||||
}
|
||||
}
|
||||
|
||||
/** Removes all speed restrictions which have passed their timeout from all signals */
|
||||
void ClearOutOfDateSignalSpeedRestrictions()
|
||||
{
|
||||
|
Reference in New Issue
Block a user