diff options
author | Timothée Floure | 2016-05-23 14:34:11 +0200 |
---|---|---|
committer | Timothée Floure | 2016-05-23 14:34:11 +0200 |
commit | 4ab73ab0a0e931666bc95739896dbebfb26e218f (patch) | |
tree | 669c627bdf814b09ec6e2aec2bcd4a207a428176 /src/ch | |
parent | 43230122b99b5fd5b60fb9b181cb0bef65104c6b (diff) | |
download | xblast-4ab73ab0a0e931666bc95739896dbebfb26e218f.tar.gz |
Fix the order of the players to be displayed (client)
Diffstat (limited to 'src/ch')
-rw-r--r-- | src/ch/epfl/xblast/client/GameState.java | 2 |
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; |