Replace day length scaled tick macros with global variables.
This is to avoid needing to expensively re-calculate them all the time. Instead update them by incrementing.
This commit is contained in:
@@ -1376,6 +1376,12 @@ static bool ImprovedBreakdownsSettingChanged(int32 p1)
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool DayLengthChanged(int32 p1)
|
||||
{
|
||||
SetScaledTickVariables();
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_NETWORK
|
||||
|
||||
static bool UpdateClientName(int32 p1)
|
||||
|
Reference in New Issue
Block a user