1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 17:19:09 +00:00

Fix ca19a0d: Send the proper network command when loading favorite face

This commit is contained in:
Tyler Trahan
2022-09-12 09:42:55 -06:00
committed by Loïc Guilloux
parent a4e00c5cb5
commit 6d84b1e108

View File

@@ -847,7 +847,7 @@ CommandCost CmdCompanyCtrl(DoCommandFlag flags, CompanyCtrlAction cca, CompanyID
/* In network games, we need to try setting the company manager face here to sync it to all clients. /* In network games, we need to try setting the company manager face here to sync it to all clients.
* If a favorite company manager face is selected, choose it. Otherwise, use a random face. */ * If a favorite company manager face is selected, choose it. Otherwise, use a random face. */
if (_company_manager_face != 0) Command<CMD_SET_COMPANY_MANAGER_FACE>::Post(_company_manager_face); if (_company_manager_face != 0) Command<CMD_SET_COMPANY_MANAGER_FACE>::SendNet(STR_NULL, c->index, _company_manager_face);
/* Now that we have a new company, broadcast our company settings to /* Now that we have a new company, broadcast our company settings to
* all clients so everything is in sync */ * all clients so everything is in sync */