Fix savegames with incorrect signal always reserve through bits

See: #620
This commit is contained in:
Jonathan G Rennison
2023-12-30 15:15:34 +00:00
parent 8256bb8359
commit f3614c419d
4 changed files with 7 additions and 4 deletions

View File

@@ -1892,7 +1892,7 @@ static bool DetermineExtraAspectsVariable()
return changed;
}
void UpdateExtraAspectsVariable()
void UpdateExtraAspectsVariable(bool update_always_reserve_through)
{
std::array<NewSignalStyleMapping, MAX_NEW_SIGNAL_STYLES> new_mapping;
DetermineSignalStyleMapping(new_mapping);
@@ -1915,6 +1915,8 @@ void UpdateExtraAspectsVariable()
if (_extra_aspects > 0) UpdateAllSignalAspects();
UpdateAllBlockSignals();
MarkWholeScreenDirty();
} else if (update_always_reserve_through) {
UpdateAllSignalReserveThroughBits();
}
}