Skip to content

Commit

Permalink
Kind of reset toasties when seeking in Practice Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Nov 5, 2019
1 parent f4153d1 commit c282936
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Etterna/Screen/Gameplay/ScreenGameplayPractice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ ScreenGameplayPractice::Update(float fDeltaTime)

if (rowStart < rowEnd)
SetupNoteDataFromRow(GAMESTATE->m_pCurSteps, rowStart, rowEnd);
if (PREFSMAN->m_bEasterEggs)
m_Toasty.Reset();
}
lastReportedSeconds = GAMESTATE->m_Position.m_fMusicSeconds;

Expand Down Expand Up @@ -299,6 +301,9 @@ ScreenGameplayPractice::SetSongPosition(float newSongPositionSeconds,
pl->RenderAllNotesIgnoreScores();
pl->PositionReset();

if (PREFSMAN->m_bEasterEggs)
m_Toasty.Reset();

// just having a message we can respond to directly is probably the best way
// to reset lua elements rather than emulating a judgment message like
// replays
Expand Down

0 comments on commit c282936

Please sign in to comment.