From 0e0a8fddd823f70f6bc556bf9df84237a0bc0ac8 Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Sun, 15 Sep 2019 18:11:36 +0200 Subject: [PATCH] error msg --- src/net/common/serverlobbythread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index 951481cf..9fa7cc65 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1383,7 +1383,7 @@ ServerLobbyThread::HandleNetPacketCreateGame(boost::shared_ptr sess // @TODO: uncomment in productive /*&& tmpData.gameType != GAME_TYPE_RANKING*/ ) { LOG_ERROR("not allowed due to ranklimit"); - SendJoinGameFailed(session, gameId, ERR_NET_PLAYER_BLOCKED); + SendJoinGameFailed(session, gameId, NTF_NET_JOIN_GAME_NAME_IN_USE); } else { boost::shared_ptr game( new ServerGame( @@ -1436,7 +1436,7 @@ ServerLobbyThread::HandleNetPacketJoinGame(boost::shared_ptr sessio } else if (!game->CheckPassword(password)) { SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_INVALID_PASSWORD); } else if (/*tmpData.gameType == GAME_TYPE_RANKING &&*/ !session->GetPlayerData()->IsPlayerAllowedToJoinCreateLimitRank(m_serverConfig.readConfigString("ServerLimitRankNum"), m_serverConfig.readConfigString("ServerLimitRankPeriod"))) { - SendJoinGameFailed(session, joinGame.gameid(), ERR_NET_PLAYER_BLOCKED); + SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_GAME_NAME_IN_USE); // } else if (tmpData.gameType == GAME_TYPE_RANKING && !joinGame.spectateonly() // && session->GetClientAddr() != SERVER_ADDRESS_LOCALHOST_STR // && session->GetClientAddr() != SERVER_ADDRESS_LOCALHOST_STR_V4V6