Skip to content
Permalink
Browse files

Add reconnect button on error: Too many players (#9405)

  • Loading branch information
Lejo1 committed Jul 12, 2020
1 parent e049973 commit 1dd6c8ed7fc8b56385546437baa54d53b43a385f
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/network/clientpackethandler.cpp
@@ -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 {

0 comments on commit 1dd6c8e

Please sign in to comment.
You can’t perform that action at this time.