minor code tweak in clock binary writer
This commit is contained in:
parent
7458b96907
commit
3b8a1f3a15
|
@ -84,7 +84,7 @@ object BinaryFormat {
|
|||
Array(writeClockLimit(clock.limitSeconds), clock.incrementSeconds.toByte) ++
|
||||
writeSignedInt24(clock.whiteTime.centis) ++
|
||||
writeSignedInt24(clock.blackTime.centis) ++
|
||||
(clock.timerOption map writeTimer getOrElse Array())
|
||||
clock.timerOption.fold(Array.empty[Byte])(writeTimer)
|
||||
}
|
||||
|
||||
def read(ba: ByteArray, whiteBerserk: Boolean, blackBerserk: Boolean): Color => Clock = color => {
|
||||
|
|
Loading…
Reference in a new issue