diff --git a/www/js/interface.js b/www/js/interface.js index 7368026..759d930 100644 --- a/www/js/interface.js +++ b/www/js/interface.js @@ -956,6 +956,7 @@ const INTERFACE = { resign_warn:false, history: history, + history_begin: [ ], replay_turn: 0, replay_auto: false, @@ -1015,6 +1016,7 @@ const INTERFACE = { reset() { GAME.init(); + INTERFACE_DATA.history = INTERFACE_DATA.history_begin; INTERFACE_DATA.player = 0; INTERFACE_DATA.rotate = 0; INTERFACE_DATA.auto_mode = null; diff --git a/www/js/scene.js b/www/js/scene.js index 231f19c..167bb2e 100644 --- a/www/js/scene.js +++ b/www/js/scene.js @@ -659,6 +659,7 @@ const SCENES = { if(data !== null) { for(let i = 0; i < data.turn; ++i) { INTERFACE.process(data.history[i]); + INTERFACE_DATA.history_begin.push(data.history[i]); } INTERFACE.draw(); }