mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
10 lines
337 B
Plaintext
10 lines
337 B
Plaintext
if ("GetTimeBetweenDates" in CompanyGoal) {
|
|
CompanyGoal._GetTimeBetweenDates <- CompanyGoal.GetTimeBetweenDates;
|
|
CompanyGoal.GetTimeBetweenDates <- function(start, end)
|
|
{
|
|
return CompanyGoal._GetTimeBetweenDates(start, start + ((end - start) / GSDate.GetDayLengthFactor()));
|
|
}
|
|
|
|
GSLog.Info("Day length compatibility in effect.");
|
|
}
|