aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothée Floure2016-05-23 14:34:11 +0200
committerTimothée Floure2016-05-23 14:34:11 +0200
commit4ab73ab0a0e931666bc95739896dbebfb26e218f (patch)
tree669c627bdf814b09ec6e2aec2bcd4a207a428176
parent43230122b99b5fd5b60fb9b181cb0bef65104c6b (diff)
downloadxblast-4ab73ab0a0e931666bc95739896dbebfb26e218f.tar.gz
Fix the order of the players to be displayed (client)
-rw-r--r--src/ch/epfl/xblast/client/GameState.java2
1 files changed, 1 insertions, 1 deletions
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 {
28 static final Comparator<Player> POSITION_COMPARATOR = (p1, p2) -> p1.position().compareTo(p2.position()); 28 static final Comparator<Player> POSITION_COMPARATOR = (p1, p2) -> p1.position().compareTo(p2.position());
29 29
30 static Comparator<Player> idPushingComparator(PlayerID firstClassID) { 30 static Comparator<Player> idPushingComparator(PlayerID firstClassID) {
31 return (p1, p2) -> p1.id() == firstClassID ? -1 : 0; 31 return (p1, p2) -> p1.id() == firstClassID ? +1 : 0;
32 } 32 }
33 33
34 private final PlayerID id; 34 private final PlayerID id;