Skip to content

Commit

Permalink
new servers first, for now
Browse files Browse the repository at this point in the history
  • Loading branch information
pschichtel committed Oct 6, 2024
1 parent 90a36f5 commit a3c84de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/Ld56C2Controller.scala
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ class JoinHandler(out: ActorRef,
val actuallyViable = hosts.filter(_.playerCount < 30)
val playerCountOrdering: Ordering[GameHost] = Ordering.by(_.playerCount)
val inceptionTimeOrdering: Ordering[GameHost] = Ordering.by(_.inceptionTime)
actuallyViable.sorted(playerCountOrdering.reverse orElse inceptionTimeOrdering).headOption
actuallyViable.sorted(playerCountOrdering.reverse orElse inceptionTimeOrdering.reverse).headOption
}
}

0 comments on commit a3c84de

Please sign in to comment.