visualizer: ensure matches start rendering at turn 0
This commit is contained in:
parent
3f3178d15a
commit
d0948b54f4
1 changed files with 2 additions and 1 deletions
|
@ -176,7 +176,7 @@ export class GameInstance {
|
||||||
prev_time: DOMHighResTimeStamp = 0;
|
prev_time: DOMHighResTimeStamp = 0;
|
||||||
|
|
||||||
|
|
||||||
turn: number = -1;
|
turn: number = 0;
|
||||||
// non-discrete part of visualizer time
|
// non-discrete part of visualizer time
|
||||||
fractional_game_time: number = 0.0;
|
fractional_game_time: number = 0.0;
|
||||||
|
|
||||||
|
@ -722,6 +722,7 @@ export function start() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_animating = true;
|
_animating = true;
|
||||||
|
game_instance.prev_time = window.performance.now();
|
||||||
requestAnimationFrame(step);
|
requestAnimationFrame(step);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue