From 874445bd47290cd87cf39ca626d8bd74e25da26d Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Tue, 28 Aug 2018 03:56:22 +0300 Subject: [PATCH] Autoplay when restarting during an autoplay --- public/src/js/controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/js/controller.js b/public/src/js/controller.js index d57a815..9ac7fce 100644 --- a/public/src/js/controller.js +++ b/public/src/js/controller.js @@ -125,7 +125,7 @@ function Controller(selectedSong, songData, autoPlayEnabled){ assets.sounds["main-music"].currentTime=0; clearInterval(_mainLoop); $("#screen").load("/src/views/game.html", function(){ - var taikoGame = new Controller(selectedSong, songData); + var taikoGame = new Controller(selectedSong, songData, autoPlayEnabled); taikoGame.run(); }); }