Fix play from here.
This commit is contained in:
parent
b3168d762f
commit
4cc33ac334
@ -578,7 +578,10 @@ const SCENES = {
|
||||
];
|
||||
if(data.mode == INTERFACE.Mode.Review) {
|
||||
buttons_top.push(UI.button("Play", () => {
|
||||
LOAD(SCENES.GamePractice, GAME_DATA);
|
||||
LOAD(SCENES.GamePractice, {
|
||||
history: INTERFACE_DATA.history,
|
||||
turn: INTERFACE_DATA.replay_turn,
|
||||
});
|
||||
}));
|
||||
}
|
||||
|
||||
@ -654,7 +657,9 @@ const SCENES = {
|
||||
|
||||
INTERFACE.init(null, INTERFACE.Mode.Local);
|
||||
if(data !== null) {
|
||||
GAME_DATA = data;
|
||||
for(let i = 0; i < data.turn; ++i) {
|
||||
INTERFACE.process(data.history[i]);
|
||||
}
|
||||
INTERFACE.draw();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user