Skip to content

Commit

Permalink
Fix hearing fail when player fails after "-end" argument and ShowResu…
Browse files Browse the repository at this point in the history
…ltsScreen=false
  • Loading branch information
Wieku committed Sep 18, 2022
1 parent 4300820 commit eca94c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/settings/gameplay.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ type gameplay struct {
Mods *mods
Boundaries *boundaries
Underlay *underlay
HUDFont string `label:"Overlay (HUD) font" file:"Select HUD font" filter:"TrueType/OpenType Font (*.ttf, *.otf)|ttf,otf" tooltip:"Sets the font that will be used for PP/UR/hit counts" liveedit:"false"`
ShowResultsScreen bool
ResultsScreenTime float64 `label:"Results screen duration" min:"1" max:"20" format:"%.1fs"`
HUDFont string `label:"Overlay (HUD) font" file:"Select HUD font" filter:"TrueType/OpenType Font (*.ttf, *.otf)|ttf,otf" tooltip:"Sets the font that will be used for PP/UR/hit counts" liveedit:"false"`
ShowResultsScreen bool `liveedit:"false"`
ResultsScreenTime float64 `label:"Results screen duration" min:"1" max:"20" format:"%.1fs" liveedit:"false"`
ResultsUseLocalTimeZone bool `label:"Show PC's time zone instead of UTC"`
ShowWarningArrows bool
ShowHitLighting bool
Expand Down
2 changes: 1 addition & 1 deletion app/states/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ func (player *Player) updateMain(delta float64) {
if player.nightcore != nil {
player.nightcore.Update(player.progressMsF)
}
} else {
} else if settings.Gameplay.ShowResultsScreen {
if player.overlay != nil {
player.overlay.DisableAudioSubmission(true)
}
Expand Down

0 comments on commit eca94c3

Please sign in to comment.