Minor Game.scala cleanup

minorGameCleanup
Isaac Levy 2017-04-25 15:54:13 -04:00
parent 145ef00996
commit 3b3bae2514
1 changed files with 1 additions and 1 deletions

View File

@ -462,7 +462,7 @@ case class Game(
private def outoftimeClock(playerLag: Color => Centis): Boolean = clock ?? { c =>
started && playable && (bothPlayersHaveMoved || isSimul) && {
(!c.isRunning && !c.isInit) || c.outoftimeWithGrace(player.color, playerLag(player.color))
(!c.isRunning && !c.isInit) || c.outoftimeWithGrace(turnColor, playerLag(turnColor))
}
}