Changeset - r28694:61ef6ff5e688
[Not reviewed]
master
0 1 0
Tyler Trahan - 10 months ago 2024-02-05 23:09:29
tyler@tylertrahan.com
Fix #11997: Adjust economy date by 1920 when loading TTD/TTO savegames (#12007)
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/saveload/afterload.cpp
Show inline comments
 
@@ -1436,6 +1436,8 @@ bool AfterLoadGame()
 
	if (IsSavegameVersionBefore(SLV_31)) {
 
		TimerGameCalendar::date += CalendarTime::DAYS_TILL_ORIGINAL_BASE_YEAR;
 
		TimerGameCalendar::year += CalendarTime::ORIGINAL_BASE_YEAR;
 
		TimerGameEconomy::date += EconomyTime::DAYS_TILL_ORIGINAL_BASE_YEAR;
 
		TimerGameEconomy::year += EconomyTime::ORIGINAL_BASE_YEAR;
 

	
 
		for (Station *st : Station::Iterate())   st->build_date      += CalendarTime::DAYS_TILL_ORIGINAL_BASE_YEAR;
 
		for (Waypoint *wp : Waypoint::Iterate()) wp->build_date      += CalendarTime::DAYS_TILL_ORIGINAL_BASE_YEAR;
0 comments (0 inline, 0 general)