remove superfluous abs
parent
0617a76e23
commit
6bd36d6a44
|
@ -12,7 +12,7 @@ case object RatingRegulator {
|
|||
(after.nb == before.nb + 1) && // after playing one game
|
||||
(after.glicko.rating > before.glicko.rating) // and gaining rating
|
||||
}) {
|
||||
val diff = (after.glicko.rating - before.glicko.rating).abs
|
||||
val diff = after.glicko.rating - before.glicko.rating
|
||||
val extra = diff * factor.value
|
||||
lila.mon.rating.regulator.micropoints(perfType.key)((extra * 1000 * 1000).toLong)
|
||||
after.copy(
|
||||
|
|
Loading…
Reference in New Issue