stupid unsigned removed
This commit is contained in:
@@ -404,14 +404,14 @@ SessionData::GetPlayerData()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SessionData::SetPlayerLastGames(std::vector<unsigned long> lastGames)
|
SessionData::SetPlayerLastGames(std::vector<long> lastGames)
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_dataMutex);
|
boost::mutex::scoped_lock lock(m_dataMutex);
|
||||||
m_lastGames = lastGames;
|
m_lastGames = lastGames;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SessionData::AddPlayerLastGame(unsigned long lastGame)
|
SessionData::AddPlayerLastGame(long lastGame)
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_dataMutex);
|
boost::mutex::scoped_lock lock(m_dataMutex);
|
||||||
|
|
||||||
@@ -420,7 +420,7 @@ SessionData::AddPlayerLastGame(unsigned long lastGame)
|
|||||||
// @TODO: remove overdued entries
|
// @TODO: remove overdued entries
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<unsigned long>
|
std::vector<long>
|
||||||
SessionData::GetPlayerLastGames()
|
SessionData::GetPlayerLastGames()
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_dataMutex);
|
boost::mutex::scoped_lock lock(m_dataMutex);
|
||||||
|
|||||||
@@ -127,9 +127,9 @@ public:
|
|||||||
void SetPlayerData(boost::shared_ptr<PlayerData> player);
|
void SetPlayerData(boost::shared_ptr<PlayerData> player);
|
||||||
boost::shared_ptr<PlayerData> GetPlayerData();
|
boost::shared_ptr<PlayerData> GetPlayerData();
|
||||||
|
|
||||||
void AddPlayerLastGame(unsigned long lastGames);
|
void AddPlayerLastGame(long lastGames);
|
||||||
void SetPlayerLastGames(std::vector<unsigned long> lastGames);
|
void SetPlayerLastGames(std::vector<long> lastGames);
|
||||||
std::vector<unsigned long> GetPlayerLastGames();
|
std::vector<long> GetPlayerLastGames();
|
||||||
bool IsPlayerAllowedToJoinLimitRank();
|
bool IsPlayerAllowedToJoinLimitRank();
|
||||||
|
|
||||||
std::string GetRemoteIPAddressFromSocket() const;
|
std::string GetRemoteIPAddressFromSocket() const;
|
||||||
@@ -165,7 +165,7 @@ private:
|
|||||||
std::string m_password;
|
std::string m_password;
|
||||||
boost::shared_ptr<PlayerData> m_playerData;
|
boost::shared_ptr<PlayerData> m_playerData;
|
||||||
|
|
||||||
std::vector<unsigned long> m_lastGames;
|
std::vector<long> m_lastGames;
|
||||||
|
|
||||||
mutable boost::mutex m_dataMutex;
|
mutable boost::mutex m_dataMutex;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user