Changeset - r26586:7489a53f5521
[Not reviewed]
master
0 1 0
Tyler Trahan - 19 months ago 2022-11-13 16:30:46
tyler@tylertrahan.com
Fix #10154: Don't inconsistently set random company face in network games (#10157)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/company_cmd.cpp
Show inline comments
 
@@ -569,8 +569,8 @@ Company *DoStartupNewCompany(bool is_ai,
 
	c->inaugurated_year = _cur_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, but we choose it here for the first (host) company. */
 
	if (_company_manager_face != 0 && !is_ai) {
 
	 * In a network game, we'll choose the favorite face later in CmdCompanyCtrl to sync it to all clients. */
 
	if (_company_manager_face != 0 && !is_ai && !_networking) {
 
		c->face = _company_manager_face;
 
	} else {
 
		RandomCompanyManagerFaceBits(c->face, (GenderEthnicity)Random(), false, false);
0 comments (0 inline, 0 general)