Changeset - r26049:791556544c0e
[Not reviewed]
master
0 1 0
dP - 3 years ago 2021-11-03 20:33:38
dp@dpointer.org
Fix 3a1a915: Every 16th client never reconnects after server restart
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/network/network_client.cpp
Show inline comments
 
@@ -1055,9 +1055,9 @@ NetworkRecvStatus ClientNetworkGameSocke
 
	 * care about the server shutting down. */
 
	if (this->status >= STATUS_JOIN) {
 
		/* To throttle the reconnects a bit, every clients waits its
 
		 * Client ID modulo 16. This way reconnects should be spread
 
		 * out a bit. */
 
		_network_reconnect = _network_own_client_id % 16;
 
		 * Client ID modulo 16 + 1 (value 0 means no reconnect).
 
		 * This way reconnects should be spread out a bit. */
 
		_network_reconnect = _network_own_client_id % 16 + 1;
 
		ShowErrorMessage(STR_NETWORK_MESSAGE_SERVER_REBOOT, INVALID_STRING_ID, WL_CRITICAL);
 
	}
 

	
0 comments (0 inline, 0 general)