Add reset point on play from here.

This commit is contained in:
yukirij 2024-09-05 01:27:58 -07:00
parent 4cc33ac334
commit b3a1ef8dd7
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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();
}