Changeset - r28580:e745deb95fbd
[Not reviewed]
master
0 1 0
Patric Stout - 10 months ago 2024-01-27 17:34:04
truebrain@openttd.org
Fix fd9e72a7: actually use the parameter value instead of the current date (#11898)
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/timer/timer_game_economy.cpp
Show inline comments
 
@@ -50,9 +50,9 @@ TimerGameEconomy::DateFract TimerGameEco
 

	
 
	/* If we're using wallclock units, economy months have 30 days and an economy year has 360 days. */
 
	TimerGameEconomy::YearMonthDay ymd;
 
	ymd.year = TimerGameEconomy::date.base() / EconomyTime::DAYS_IN_ECONOMY_YEAR;
 
	ymd.month = (TimerGameEconomy::date.base() % EconomyTime::DAYS_IN_ECONOMY_YEAR) / EconomyTime::DAYS_IN_ECONOMY_MONTH;
 
	ymd.day = TimerGameEconomy::date.base() % EconomyTime::DAYS_IN_ECONOMY_MONTH;
 
	ymd.year = date.base() / EconomyTime::DAYS_IN_ECONOMY_YEAR;
 
	ymd.month = (date.base() % EconomyTime::DAYS_IN_ECONOMY_YEAR) / EconomyTime::DAYS_IN_ECONOMY_MONTH;
 
	ymd.day = date.base() % EconomyTime::DAYS_IN_ECONOMY_MONTH;
 
	return ymd;
 
}
 

	
0 comments (0 inline, 0 general)