another bugfix array declaration
This commit is contained in:
@@ -39,7 +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
|
// #include <Array> // same here
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using boost::asio::ip::tcp;
|
using boost::asio::ip::tcp;
|
||||||
@@ -402,13 +402,13 @@ SessionData::GetPlayerData()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SessionData::SetPlayerLastGames(array<long, 25> lastGames)
|
SessionData::SetPlayerLastGames(Array<long, 25> lastGames)
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_dataMutex);
|
boost::mutex::scoped_lock lock(m_dataMutex);
|
||||||
m_lastGames = player;
|
m_lastGames = player;
|
||||||
}
|
}
|
||||||
|
|
||||||
array<long, 25>
|
Array<long, 25>
|
||||||
SessionData::GetPlayerLastGames()
|
SessionData::GetPlayerLastGames()
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_dataMutex);
|
boost::mutex::scoped_lock lock(m_dataMutex);
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ typedef unsigned SessionId;
|
|||||||
#include <boost/thread.hpp>
|
#include <boost/thread.hpp>
|
||||||
#include <boost/enable_shared_from_this.hpp>
|
#include <boost/enable_shared_from_this.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <array>
|
#include <Array>
|
||||||
|
|
||||||
#include <net/socket_helper.h>
|
#include <net/socket_helper.h>
|
||||||
#include <net/sessiondatacallback.h>
|
#include <net/sessiondatacallback.h>
|
||||||
@@ -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(array<long, 25> lastGames);
|
void SetPlayerLastGames(Array<long, 25> lastGames);
|
||||||
array<long, 25> GetPlayerLastGames();
|
Array<long, 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;
|
||||||
|
|
||||||
array<long, 25> m_lastGames;
|
Array<long, 25> m_lastGames;
|
||||||
|
|
||||||
mutable boost::mutex m_dataMutex;
|
mutable boost::mutex m_dataMutex;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user