fix compile error with startedAtTurn (e1ad6011cc4)
parent
5b28f0fef3
commit
e017a36b0a
|
@ -100,9 +100,8 @@ export class ClockController {
|
|||
Math.max(0, Math.min(1, millis * this.timeRatioDivisor));
|
||||
|
||||
setClock = (d: RoundData, white: Seconds, black: Seconds, delay: Centis = 0) => {
|
||||
const isClockRunning = game.playable(d) &&
|
||||
((d.game.turns - d.game.startedAtTurn) > 1 || d.clock!.running),
|
||||
delayMs = delay * 10;
|
||||
const isClockRunning = game.playable(d) && (game.playedTurns(d) > 1 || d.clock!.running),
|
||||
delayMs = delay * 10;
|
||||
|
||||
this.times = {
|
||||
white: white * 1000,
|
||||
|
|
Loading…
Reference in New Issue