aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ch/epfl/xblast/server/GameState.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ch/epfl/xblast/server/GameState.java b/src/ch/epfl/xblast/server/GameState.java
index df0cc24..a59c7b5 100644
--- a/src/ch/epfl/xblast/server/GameState.java
+++ b/src/ch/epfl/xblast/server/GameState.java
@@ -483,7 +483,7 @@ public final class GameState {
483 * @return true if all the players are dead or if the game reached the time limit 483 * @return true if all the players are dead or if the game reached the time limit
484 */ 484 */
485 public boolean isGameOver() { 485 public boolean isGameOver() {
486 return this.alivePlayers().size() <= this.players().size() - 1 || this.ticks >= Ticks.TOTAL_TICKS; 486 return this.alivePlayers().size() <= 1 || this.ticks >= Ticks.TOTAL_TICKS;
487 } 487 }
488 488
489 /** 489 /**