Skip to content

Commit

Permalink
Fix inconsistent Paused state for Chart Preview
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Oct 18, 2019
1 parent 8299957 commit c7be276
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Themes/Til Death/BGAnimations/_chartpreview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ local t = Def.ActorFrame {
InitCommand = function(self)
self:xy(wodth/2, SCREEN_HEIGHT/2)
self:settext(""):diffuse(color("0.8,0,0"))
end,
NoteFieldVisibleMessageCommand = function(self)
self:settext("")
end
},
Def.Quad {
Expand Down
1 change: 1 addition & 0 deletions src/Etterna/Models/Songs/Song.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1973,6 +1973,7 @@ Song::Borp()
PlayParams.fLengthSeconds = GetLastSecond() + 2.f;
}
SOUND->PlayMusic(PlayParams, FallbackMusic);
GAMESTATE->SetPaused(false);
}

void
Expand Down
1 change: 1 addition & 0 deletions src/Etterna/Screen/Others/ScreenSelectMusic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1485,6 +1485,7 @@ ScreenSelectMusic::GeneratePreviewNoteField()
}

GAMESTATE->m_bIsChartPreviewActive = true;
GAMESTATE->SetPaused(false);

// Create and Render the NoteField afterwards
// It is done in this order so we don't see it before the music changes.
Expand Down

0 comments on commit c7be276

Please sign in to comment.