diff options
author | Pacien TRAN-GIRARD | 2016-04-10 11:08:41 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2016-04-10 11:08:41 +0200 |
commit | 9a3d7cc87917b980c7faaed481ef40b09e0fa302 (patch) | |
tree | 9fb24ef25b069e332ced3cbe4e53119f7f60c2a3 /src | |
parent | a74846aced2635ebe7c51cc56b6d22eb4c33c69c (diff) | |
download | xblast-9a3d7cc87917b980c7faaed481ef40b09e0fa302.tar.gz |
Fix game over state
Diffstat (limited to 'src')
-rw-r--r-- | src/ch/epfl/xblast/server/GameState.java | 2 |
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 | /** |