Ensure tile loop counts and cargo scalers updated when day length changed
This commit is contained in:
@@ -123,6 +123,9 @@ void RecalculateStateTicksOffset()
|
|||||||
void UpdateEffectiveDayLengthFactor()
|
void UpdateEffectiveDayLengthFactor()
|
||||||
{
|
{
|
||||||
DateDetail::_effective_day_length = _settings_game.EffectiveDayLengthFactor();
|
DateDetail::_effective_day_length = _settings_game.EffectiveDayLengthFactor();
|
||||||
|
|
||||||
|
SetupTileLoopCounts();
|
||||||
|
UpdateCargoScalers();
|
||||||
}
|
}
|
||||||
|
|
||||||
CalTime::Date StateTicksToCalendarDate(StateTicks ticks)
|
CalTime::Date StateTicksToCalendarDate(StateTicks ticks)
|
||||||
|
@@ -167,8 +167,10 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settin
|
|||||||
} else {
|
} else {
|
||||||
RecalculateStateTicksOffset();
|
RecalculateStateTicksOffset();
|
||||||
}
|
}
|
||||||
SetupTileLoopCounts();
|
|
||||||
UpdateCargoScalers();
|
UpdateEffectiveDayLengthFactor();
|
||||||
|
SetupTickRate();
|
||||||
|
|
||||||
UpdateCachedSnowLine();
|
UpdateCachedSnowLine();
|
||||||
UpdateCachedSnowLineBounds();
|
UpdateCachedSnowLineBounds();
|
||||||
|
|
||||||
|
@@ -2031,9 +2031,6 @@ static void DayLengthChanged(int32_t new_value)
|
|||||||
UpdateEffectiveDayLengthFactor();
|
UpdateEffectiveDayLengthFactor();
|
||||||
RecalculateStateTicksOffset();
|
RecalculateStateTicksOffset();
|
||||||
|
|
||||||
SetupTileLoopCounts();
|
|
||||||
UpdateCargoScalers();
|
|
||||||
|
|
||||||
MarkWholeScreenDirty();
|
MarkWholeScreenDirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user