bugfix array def
This commit is contained in:
@@ -39,6 +39,7 @@
|
|||||||
#include <gsasl.h>
|
#include <gsasl.h>
|
||||||
|
|
||||||
// #include <ctime> // @TODO: remove if really not necessary
|
// #include <ctime> // @TODO: remove if really not necessary
|
||||||
|
// #include <array> // same here
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using boost::asio::ip::tcp;
|
using boost::asio::ip::tcp;
|
||||||
|
|||||||
@@ -127,8 +127,8 @@ 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 SetPlayerLastGames(std::array<std::time_t> lastGames);
|
void SetPlayerLastGames(std::array<std::time_t, 25> lastGames);
|
||||||
std::array<std::time_t> GetPlayerLastGames();
|
std::array<std::time_t, 25> GetPlayerLastGames();
|
||||||
|
|
||||||
std::string GetRemoteIPAddressFromSocket() const;
|
std::string GetRemoteIPAddressFromSocket() const;
|
||||||
|
|
||||||
@@ -163,7 +163,7 @@ private:
|
|||||||
std::string m_password;
|
std::string m_password;
|
||||||
boost::shared_ptr<PlayerData> m_playerData;
|
boost::shared_ptr<PlayerData> m_playerData;
|
||||||
|
|
||||||
std::array<std::time_t> m_lastGames;
|
std::array<std::time_t, 25> m_lastGames;
|
||||||
|
|
||||||
mutable boost::mutex m_dataMutex;
|
mutable boost::mutex m_dataMutex;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user