Changeset - r28751:1666cc458516
[Not reviewed]
master
0 1 0
Patric Stout - 3 months ago 2024-02-12 21:56:27
truebrain@openttd.org
Fix: survey-time seconds for clients was calculated wrong (#12078)
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/network/network_client.cpp
Show inline comments
 
@@ -878,12 +878,15 @@ NetworkRecvStatus ClientNetworkGameSocke
 
	/* If the savegame has successfully loaded, ALL windows have been removed,
 
	 * only toolbar/statusbar and gamefield are visible */
 

	
 
	/* Say we received the map and loaded it correctly! */
 
	SendMapOk();
 

	
 
	/* As we skipped switch-mode, update the time we "switched". */
 
	_switch_mode_time = std::chrono::steady_clock::now();
 

	
 
	ShowClientList();
 

	
 
	/* New company/spectator (invalid company) or company we want to join is not active
 
	 * Switch local company to spectator and await the server's judgement */
 
	if (_network_join.company == COMPANY_NEW_COMPANY || !Company::IsValidID(_network_join.company)) {
 
		SetLocalCompany(COMPANY_SPECTATOR);
0 comments (0 inline, 0 general)