don't update boosters ratings

pull/339/head^2
Thibault Duplessis 2015-02-28 11:04:39 +01:00
parent 43055d7d77
commit e75a9d8608
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ private[round] final class Finisher(
if game.turns > 10
humanColor <- game.players.find(_.isHuman).map(_.color)
user <- humanColor.fold(white, black)
if !user.engine
if !user.lame
result = game.winnerColor match {
case Some(c) if c == humanColor => Loss
case Some(_) => Win

View File

@ -18,7 +18,7 @@ final class PerfsUpdater(historyApi: HistoryApi) {
def save(game: Game, white: User, black: User, resetGameRatings: Boolean = false): Funit =
PerfPicker.main(game) ?? { mainPerf =>
(game.rated && game.finished && game.accountable && !white.engine && !black.engine) ?? {
(game.rated && game.finished && game.accountable && !white.lame && !black.lame) ?? {
val ratingsW = mkRatings(white.perfs)
val ratingsB = mkRatings(black.perfs)
val result = resultOf(game)