aboutsummaryrefslogtreecommitdiff
path: root/src/ch
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch')
-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;