Fixing bug with language code.
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ struct DBPlayerData
|
|||||||
{
|
{
|
||||||
DB_id id;
|
DB_id id;
|
||||||
std::string secret;
|
std::string secret;
|
||||||
std::string language;
|
std::string country;
|
||||||
std::string last_login;
|
std::string last_login;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1494,6 +1494,7 @@ ServerLobbyThread::UserValid(unsigned playerId, const DBPlayerData &dbPlayerData
|
|||||||
{
|
{
|
||||||
SessionWrapper tmpSession = m_sessionManager.GetSessionByUniquePlayerId(playerId, true);
|
SessionWrapper tmpSession = m_sessionManager.GetSessionByUniquePlayerId(playerId, true);
|
||||||
tmpSession.playerData->SetDBId(dbPlayerData.id);
|
tmpSession.playerData->SetDBId(dbPlayerData.id);
|
||||||
|
tmpSession.playerData->SetCountry(dbPlayerData.country);
|
||||||
this->AuthChallenge(tmpSession, dbPlayerData.secret);
|
this->AuthChallenge(tmpSession, dbPlayerData.secret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user