From 5935a7fea8749b277d0c925b95fad22e16cec6fc Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Thu, 19 Aug 2021 21:37:29 +0200 Subject: [PATCH] Fixed bug where menu song wasn't repeated. --- cmd/tins2021/appcontext.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/tins2021/appcontext.go b/cmd/tins2021/appcontext.go index c6b1769..a2cf0c6 100644 --- a/cmd/tins2021/appcontext.go +++ b/cmd/tins2021/appcontext.go @@ -13,6 +13,7 @@ type appContext struct { Settings *tins2021.Settings Score *tins2021.ScoreState + Virtual *VirtualControls Debug bool StarTexture tins2021.AnimatedTexture @@ -192,7 +193,7 @@ func (app *appContext) switchToMenuMusic(ctx ui.Context) { if app.MenuMusic != nil { return } - app.MenuMusic, _ = app.Audio.PlayMusic("song_menu.mp3", func(m *Music) {}) + app.MenuMusic, _ = app.Audio.PlayMusic("song_menu.mp3", func(m *Music) { m.AutoRepeat = true }) gameMusic := app.GameMusic app.GameMusic = nil if gameMusic != nil {