Add reset point on play from here.
This commit is contained in:
parent
4cc33ac334
commit
b3a1ef8dd7
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user