From 4ab73ab0a0e931666bc95739896dbebfb26e218f Mon Sep 17 00:00:00 2001 From: Timothée Floure Date: Mon, 23 May 2016 14:34:11 +0200 Subject: Fix the order of the players to be displayed (client) --- src/ch/epfl/xblast/client/GameState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch/epfl/xblast/client/GameState.java b/src/ch/epfl/xblast/client/GameState.java index 9a4d37b..cb438c9 100644 --- a/src/ch/epfl/xblast/client/GameState.java +++ b/src/ch/epfl/xblast/client/GameState.java @@ -28,7 +28,7 @@ public final class GameState { static final Comparator POSITION_COMPARATOR = (p1, p2) -> p1.position().compareTo(p2.position()); static Comparator idPushingComparator(PlayerID firstClassID) { - return (p1, p2) -> p1.id() == firstClassID ? -1 : 0; + return (p1, p2) -> p1.id() == firstClassID ? +1 : 0; } private final PlayerID id; -- cgit v1.2.3