Fixes issues with retrying modes with BGM

pull/14/head
Ishaan Bhardwaj 2021-01-16 09:34:41 -05:00
parent ece853c9d3
commit 01e91fbd93
1 changed files with 1 additions and 0 deletions

View File

@ -119,6 +119,7 @@ function GameScene:onInputPress(e)
submitHighscore(highscore_hash, highscore_entry)
scene = e.input == "retry" and GameScene(self.retry_mode, self.retry_ruleset, self.secret_inputs) or ModeSelectScene()
elseif e.input == "retry" then
switchBGM(nil)
scene = GameScene(self.retry_mode, self.retry_ruleset, self.secret_inputs)
elseif e.input == "pause" and not (self.game.game_over or self.game.completed) then
self.paused = not self.paused