bugfix
This commit is contained in:
@@ -1379,7 +1379,7 @@ ServerLobbyThread::HandleNetPacketCreateGame(boost::shared_ptr<SessionData> sess
|
||||
SendJoinGameFailed(session, gameId, NTF_NET_JOIN_GUEST_FORBIDDEN);
|
||||
} else if (!ServerGame::CheckSettings(tmpData, password, GetServerMode())) {
|
||||
SendJoinGameFailed(session, gameId, NTF_NET_JOIN_INVALID_SETTINGS);
|
||||
} else if (!session->GetPlayerData()->IsPlayerAllowedToJoinCreateLimitRank(m_serverConfig.readConfigString("ServerLimitRankNum"), m_serverConfig.readConfigString("ServerLimitRankPeriod")))
|
||||
} else if (!session->GetPlayerData()->IsPlayerAllowedToJoinCreateLimitRank(m_serverConfig.readConfigString("ServerLimitRankNum"), m_serverConfig.readConfigString("ServerLimitRankPeriod"))
|
||||
// @TODO: uncomment in productive
|
||||
/*&& tmpData.gameType != GAME_TYPE_RANKING*/ ) {
|
||||
LOG_ERROR("not allowed due to ranklimit");
|
||||
|
||||
+1
-1
@@ -252,7 +252,7 @@ PlayerData::SetPlayerLastGames(std::vector<long> last_games)
|
||||
{
|
||||
boost::mutex::scoped_lock lock(m_dataMutex);
|
||||
m_last_games.clear();
|
||||
//m_last_games = last_games;
|
||||
m_last_games = last_games;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user