Skip to content

Commit

Permalink
Add true return for hopeful success on View Eval/Replay/Run Playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Nov 10, 2020
1 parent 57857a4 commit 1980844
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Etterna/Screen/Others/ScreenSelectMusic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1730,6 +1730,8 @@ class LunaScreenSelectMusic : public Luna<ScreenSelectMusic>
pl.chartlist[0].rate;
MESSAGEMAN->Broadcast("RateChanged");
p->SelectCurrent(PLAYER_1);

// success
lua_pushboolean(L, true);
return 1;
}
Expand Down Expand Up @@ -1845,6 +1847,8 @@ class LunaScreenSelectMusic : public Luna<ScreenSelectMusic>
GamePreferences::m_AutoPlay.Set(PC_REPLAY);
GAMESTATE->m_pPlayerState->m_PlayerController = PC_REPLAY;

// success
lua_pushboolean(L, true);
return 1;
}

Expand Down Expand Up @@ -1938,6 +1942,8 @@ class LunaScreenSelectMusic : public Luna<ScreenSelectMusic>
GAMEMAN->m_bResetModifiers = true;
GAMEMAN->m_fPreviousRate = oldRate;

// success
lua_pushboolean(L, true);
return 1;
}

Expand Down

0 comments on commit 1980844

Please sign in to comment.