mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +00:00
Fix 3a1a915
: Every 16th client never reconnects after server restart
This commit is contained in:
parent
9edb75ec0b
commit
80e3397f85
@ -1055,9 +1055,9 @@ NetworkRecvStatus ClientNetworkGameSocketHandler::Receive_SERVER_NEWGAME(Packet
|
||||
* 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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user