Navigation Menu

Skip to content

Commit

Permalink
Add reconnect button on error: Too many players (#9405)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lejo1 committed Jul 12, 2020
1 parent e049973 commit 1dd6c8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/network/clientpackethandler.cpp
Expand Up @@ -208,6 +208,9 @@ void Client::handleCommand_AccessDenied(NetworkPacket* pkt)
m_access_denied_reconnect = reconnect & 1;
} else if (denyCode == SERVER_ACCESSDENIED_CUSTOM_STRING) {
*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) {
m_access_denied_reason = accessDeniedStrings[denyCode];
} else {
Expand Down

0 comments on commit 1dd6c8e

Please sign in to comment.