Skip to content

Commit

Permalink
#53 ツモ切りON/OFFが引き継がれないバグを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kobalab committed Jul 26, 2019
1 parent d5ca33f commit 7c3e144
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/autoplay.js
Expand Up @@ -21,6 +21,7 @@ $(function(){
let speed = 3;
let sound = true;
let open_shoupai = false;
let open_he = false;

function init() {
$(window).on('keyup', function(event){
Expand All @@ -43,6 +44,7 @@ $(function(){
speed = game._speed;
sound = game._view.sound_on;
open_shoupai = game._view.open_shoupai;
open_he = game._view.open_he;
}
game = new Majiang.Game();
game._player = [
Expand All @@ -57,6 +59,7 @@ $(function(){
game._speed = speed;
game._view.sound_on = sound;
game._view.open_shoupai = open_shoupai;
game._view.open_he = open_he;
gamectl.update_controler();
game.kaiju();
}
Expand Down

0 comments on commit 7c3e144

Please sign in to comment.