You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenTTD-patches/bin/game/compat_brgs.nut

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.");
}