Allow retrieving of own player id by gui.

This commit is contained in:
lotodore
2010-03-24 20:10:36 +00:00
parent d386092a03
commit 5ea56bbf0d
4 changed files with 13 additions and 1 deletions
+2
View File
@@ -963,12 +963,14 @@ ClientThread::SetStartData(const StartData &startData)
unsigned
ClientThread::GetGuiPlayerId() const
{
boost::mutex::scoped_lock lock(m_guiPlayerIdMutex);
return m_guiPlayerId;
}
void
ClientThread::SetGuiPlayerId(unsigned guiPlayerId)
{
boost::mutex::scoped_lock lock(m_guiPlayerIdMutex);
m_guiPlayerId = guiPlayerId;
}