1
0
Fork 0

Fix #13839: Incorrect colour of first company legend in smallmap window. (#13841)

Use the proper command to set the initial company colour.
pull/13545/merge
Peter Nelson 2025-03-17 20:28:02 +00:00 committed by GitHub
parent ff275b805b
commit 5255aabe4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -872,9 +872,7 @@ static void MakeNewGameDone()
* COLOUR_END corresponds to Random colour */
if (_settings_client.gui.starting_colour != COLOUR_END) {
c->colour = _settings_client.gui.starting_colour;
ResetCompanyLivery(c);
_company_colours[c->index] = c->colour;
Command<CMD_SET_COMPANY_COLOUR>::Post(LS_DEFAULT, true, _settings_client.gui.starting_colour);
}
if (_settings_client.gui.starting_colour_secondary != COLOUR_END && HasBit(_loaded_newgrf_features.used_liveries, LS_DEFAULT)) {