Trying to make rejoin work, still broken due to change of unique id during game.

This commit is contained in:
lotodore
2011-09-28 20:20:08 +00:00
parent 2488ea43cd
commit d6ab25d816
11 changed files with 74 additions and 31 deletions
@@ -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;
}