fix compile error with startedAtTurn (e1ad6011cc4)

pull/3981/head
Niklas Fiekas 2018-01-17 13:44:23 +01:00
parent 5b28f0fef3
commit e017a36b0a
1 changed files with 2 additions and 3 deletions

View File

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