From 86e0af6e4d1cce74640022d1a86b802ba44eaa44 Mon Sep 17 00:00:00 2001 From: Theodore Ehrenborg Date: Sat, 15 Jun 2024 21:54:55 +0100 Subject: [PATCH] Revert "To revert: Make music start earlier" This reverts commit 8fc10b67183785c8f6fb00b05a48b2c295b6532d. --- src/Main.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main.elm b/src/Main.elm index f72f3e2..5b89725 100644 --- a/src/Main.elm +++ b/src/Main.elm @@ -209,7 +209,7 @@ update _ msg model = generateLeaf else - if nextScore == 2 && act_model.score /= 2 then playFromElm "assets/happy_birthday.m4a" else Cmd.none + if nextScore == year && act_model.score /= year then playFromElm "assets/happy_birthday.m4a" else Cmd.none , Audio.cmdNone )