Skip to content

Commit

Permalink
fart jokes aren't very funny, but the word fart is
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 30, 2018
1 parent 381ea18 commit 570bcae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/DownloadManager.cpp
Expand Up @@ -2433,8 +2433,12 @@ class LunaDownloadManager : public Luna<DownloadManager>
}
static int Fart(T* p, lua_State* L)
{
lua_pushboolean(
L, DLMAN->chartLeaderboards[SArg(1)][IArg(2) - 1].hasReplay);
RString ck = SArg(1);
size_t idx = IArg(2) - 1;
if (idx < DLMAN->chartLeaderboards[ck].size())
lua_pushboolean(L, DLMAN->chartLeaderboards[ck][idx].hasReplay);
else
lua_pushboolean(L, false);
return 1;
}
LunaDownloadManager()
Expand Down

0 comments on commit 570bcae

Please sign in to comment.