Trying to make rejoin work, still broken due to change of unique id during game.
This commit is contained in:
@@ -54,9 +54,17 @@ ClientPlayer::getMyID() const
|
||||
return myID;
|
||||
}
|
||||
|
||||
void
|
||||
ClientPlayer::setMyUniqueID(unsigned newId)
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
|
||||
myUniqueID = newId;
|
||||
}
|
||||
|
||||
unsigned
|
||||
ClientPlayer::getMyUniqueID() const
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
|
||||
return myUniqueID;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ public:
|
||||
void setHand(HandInterface *);
|
||||
|
||||
int getMyID() const;
|
||||
void setMyUniqueID(unsigned newId);
|
||||
unsigned getMyUniqueID() const;
|
||||
void setMyGuid(const std::string &theValue);
|
||||
std::string getMyGuid() const;
|
||||
@@ -152,7 +153,7 @@ private:
|
||||
|
||||
// Konstanten
|
||||
const int myID;
|
||||
const unsigned myUniqueID;
|
||||
unsigned myUniqueID;
|
||||
std::string myGuid;
|
||||
const PlayerType myType;
|
||||
std::string myName;
|
||||
|
||||
Reference in New Issue
Block a user