Skip to content

Commit

Permalink
Fixed nextpage with the new tmio API
Browse files Browse the repository at this point in the history
  • Loading branch information
GreepTheSheep committed Dec 27, 2021
1 parent 030ea99 commit 208da18
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Interface/Tabs/Map.as
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class MapTab : Tab
bool m_authorsError = false;
bool m_TMIOrequestStart = false;
bool m_TMIOrequestStarted = false;
bool m_TMIOnextPage = false;
bool m_TMIOstopleaderboard = false;
bool m_TMIOerror = false;
string m_TMIOerrorMsg = "";
Expand Down Expand Up @@ -162,8 +161,7 @@ class MapTab : Tab

void HandleTMIOResponse(const Json::Value &in json)
{
if (!m_TMIOnextPage && json.get_Length() < 15) m_TMIOstopleaderboard = true;
if (m_TMIOnextPage && json.get_Length() < 50) m_TMIOstopleaderboard = true;
if (json.get_Length() < 100) m_TMIOstopleaderboard = true;

for (uint i = 0; i < json.get_Length(); i++) {
auto leaderboard = TMIO::Leaderboard(json[i]);
Expand Down

0 comments on commit 208da18

Please sign in to comment.