Fix #12365: Company Window now displays proper inauguration year and period while in wallclock mode.

This commit is contained in:
Kaiden Joy
2024-06-18 19:22:43 -04:00
committed by rubidium42
parent 55ca1c77be
commit 7a698c7f1c
6 changed files with 19 additions and 2 deletions

View File

@@ -608,6 +608,7 @@ Company *DoStartupNewCompany(bool is_ai, CompanyID company = INVALID_COMPANY)
c->avail_railtypes = GetCompanyRailTypes(c->index);
c->avail_roadtypes = GetCompanyRoadTypes(c->index);
c->inaugurated_year = TimerGameEconomy::year;
c->inaugurated_year_calendar = TimerGameCalendar::year;
/* If starting a player company in singleplayer and a favorite company manager face is selected, choose it. Otherwise, use a random face.
* In a network game, we'll choose the favorite face later in CmdCompanyCtrl to sync it to all clients. */