mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-03 10:30:59 +01:00
Use the proper command to set the initial company colour.
This commit is contained in:
parent
ff275b805b
commit
5255aabe4d
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user