From c2829362ba155456eddcbd39348a5dde4d082afa Mon Sep 17 00:00:00 2001 From: Barinade Date: Tue, 5 Nov 2019 01:37:19 -0600 Subject: [PATCH] Kind of reset toasties when seeking in Practice Mode --- src/Etterna/Screen/Gameplay/ScreenGameplayPractice.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Etterna/Screen/Gameplay/ScreenGameplayPractice.cpp b/src/Etterna/Screen/Gameplay/ScreenGameplayPractice.cpp index c681b9ea69..bc2e20d4aa 100644 --- a/src/Etterna/Screen/Gameplay/ScreenGameplayPractice.cpp +++ b/src/Etterna/Screen/Gameplay/ScreenGameplayPractice.cpp @@ -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; @@ -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