Add reconnect button on error: Too many players (#9405)
parent
e0499731a8
commit
1dd6c8ed7f
|
@ -208,6 +208,9 @@ void Client::handleCommand_AccessDenied(NetworkPacket* pkt)
|
||||||
m_access_denied_reconnect = reconnect & 1;
|
m_access_denied_reconnect = reconnect & 1;
|
||||||
} else if (denyCode == SERVER_ACCESSDENIED_CUSTOM_STRING) {
|
} else if (denyCode == SERVER_ACCESSDENIED_CUSTOM_STRING) {
|
||||||
*pkt >> m_access_denied_reason;
|
*pkt >> m_access_denied_reason;
|
||||||
|
} else if (denyCode == SERVER_ACCESSDENIED_TOO_MANY_USERS) {
|
||||||
|
m_access_denied_reason = accessDeniedStrings[denyCode];
|
||||||
|
m_access_denied_reconnect = true;
|
||||||
} else if (denyCode < SERVER_ACCESSDENIED_MAX) {
|
} else if (denyCode < SERVER_ACCESSDENIED_MAX) {
|
||||||
m_access_denied_reason = accessDeniedStrings[denyCode];
|
m_access_denied_reason = accessDeniedStrings[denyCode];
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue