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
+8
View File
@@ -490,6 +490,14 @@ unsigned Session::getClientCurrentGameId() const
return id;
}
unsigned Session::getClientUniquePlayerId() const
{
unsigned id = 0;
if (myNetClient)
id = myNetClient->GetGuiPlayerId();
return id;
}
bool Session::getAvatarFile(const MD5Buf &avatarMD5, std::string &fileName)
{
bool retVal = false;