switch from std::time to long timestamp only
This commit is contained in:
@@ -402,13 +402,13 @@ SessionData::GetPlayerData()
|
||||
}
|
||||
|
||||
void
|
||||
SessionData::SetPlayerLastGames(std::array<std::time_t> lastGames)
|
||||
SessionData::SetPlayerLastGames(std::array<long, 25> lastGames)
|
||||
{
|
||||
boost::mutex::scoped_lock lock(m_dataMutex);
|
||||
m_lastGames = player;
|
||||
}
|
||||
|
||||
std::array<std::time_t>
|
||||
std::array<long, 25>
|
||||
SessionData::GetPlayerLastGames()
|
||||
{
|
||||
boost::mutex::scoped_lock lock(m_dataMutex);
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <net/socket_msg.h>
|
||||
|
||||
#include <ctime>
|
||||
#include <array>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
@@ -127,8 +127,8 @@ public:
|
||||
void SetPlayerData(boost::shared_ptr<PlayerData> player);
|
||||
boost::shared_ptr<PlayerData> GetPlayerData();
|
||||
|
||||
void SetPlayerLastGames(std::array<std::time_t, 25> lastGames);
|
||||
std::array<std::time_t, 25> GetPlayerLastGames();
|
||||
void SetPlayerLastGames(std::array<long, 25> lastGames);
|
||||
std::array<long, 25> GetPlayerLastGames();
|
||||
|
||||
std::string GetRemoteIPAddressFromSocket() const;
|
||||
|
||||
@@ -163,7 +163,7 @@ private:
|
||||
std::string m_password;
|
||||
boost::shared_ptr<PlayerData> m_playerData;
|
||||
|
||||
std::array<std::time_t, 25> m_lastGames;
|
||||
std::array<long, 25> m_lastGames;
|
||||
|
||||
mutable boost::mutex m_dataMutex;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user