src/openttd.cpp
changeset 8743 62a558995c35
parent 8720 4e60c30e2006
child 8750 fdd6054e7bae
equal deleted inserted replaced
8742:a55430b832a6 8743:62a558995c35
   694 	DoCommandP(0, (_patches.autorenew << 15 ) | (_patches.autorenew_months << 16) | 4, _patches.autorenew_money, NULL, CMD_SET_AUTOREPLACE);
   694 	DoCommandP(0, (_patches.autorenew << 15 ) | (_patches.autorenew_months << 16) | 4, _patches.autorenew_money, NULL, CMD_SET_AUTOREPLACE);
   695 
   695 
   696 	SettingsDisableElrail(_patches.disable_elrails);
   696 	SettingsDisableElrail(_patches.disable_elrails);
   697 	SetDefaultRailGui();
   697 	SetDefaultRailGui();
   698 
   698 
       
   699 #ifdef ENABLE_NETWORK
   699 	/* We are the server, we start a new player (not dedicated),
   700 	/* We are the server, we start a new player (not dedicated),
   700 	 * so set the default password *if* needed. */
   701 	 * so set the default password *if* needed. */
   701 	if (_network_server && !StrEmpty(_network_default_company_pass)) {
   702 	if (_network_server && !StrEmpty(_network_default_company_pass)) {
   702 		char *password = _network_default_company_pass;
   703 		char *password = _network_default_company_pass;
   703 		NetworkChangeCompanyPassword(1, &password);
   704 		NetworkChangeCompanyPassword(1, &password);
   704 	}
   705 	}
       
   706 #endif /* ENABLE_NETWORK */
   705 
   707 
   706 	MarkWholeScreenDirty();
   708 	MarkWholeScreenDirty();
   707 }
   709 }
   708 
   710 
   709 static void MakeNewGame(bool from_heightmap)
   711 static void MakeNewGame(bool from_heightmap)