From 0e65b39395325a71ff8f8e503e7612ba5a9dc93f Mon Sep 17 00:00:00 2001 From: Joe Z Date: Sun, 7 Jul 2019 19:38:46 -0400 Subject: [PATCH] BGM kept looping after exiting credits_a3, which is not what we want. --- tetris/modes/credits_a3.lua | 1 + tetris/modes/marathon_a1.lua | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/tetris/modes/credits_a3.lua b/tetris/modes/credits_a3.lua index 07f6a0f..c7d9055 100644 --- a/tetris/modes/credits_a3.lua +++ b/tetris/modes/credits_a3.lua @@ -44,6 +44,7 @@ function CreditsA3Game:advanceOneFrame(inputs, ruleset) self.roll_frames = 150 else self.game_over = true + switchBGM(nil) end end end diff --git a/tetris/modes/marathon_a1.lua b/tetris/modes/marathon_a1.lua index df7d588..84dd25c 100644 --- a/tetris/modes/marathon_a1.lua +++ b/tetris/modes/marathon_a1.lua @@ -12,7 +12,6 @@ MarathonA1Game.hash = "MarathonA1" MarathonA1Game.tagline = "Can you score enough points to reach the title of Grand Master?" - function MarathonA1Game:new() MarathonA1Game.super:new()