Skip to content

Commit

Permalink
store usernames properly for view leaderboard as (closes #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Dec 8, 2023
1 parent f639337 commit 91f3136
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/managers/BetterInfoOnline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ void BetterInfoOnline::generateScores(const std::string& response, int accountID
BetterInfo::responseToDict(current)
);

GameLevelManager::sharedState()->storeUserName(score->m_userID, score->m_accountID, score->m_userName);

// workaround for leaderboard highlighting
if(std::string(score->m_userUDID) != "") score->m_userUDID = GM->m_playerUDID;

Expand Down

0 comments on commit 91f3136

Please sign in to comment.