diff options
author | Pacien TRAN-GIRARD | 2016-04-08 13:16:59 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2016-04-08 13:16:59 +0200 |
commit | ba298420d7890412c42b671e387602c3fc240730 (patch) | |
tree | 0ac10cfe23da86776cbe133dc162374910636619 /src/ch | |
parent | 22b615543b70fd011f8e5e7ed9d8ae82654e5b0c (diff) | |
download | xblast-ba298420d7890412c42b671e387602c3fc240730.tar.gz |
Make shadows great again
Diffstat (limited to 'src/ch')
-rw-r--r-- | src/ch/epfl/xblast/server/GameState.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ch/epfl/xblast/server/GameState.java b/src/ch/epfl/xblast/server/GameState.java index 3df5ebd..288aeb8 100644 --- a/src/ch/epfl/xblast/server/GameState.java +++ b/src/ch/epfl/xblast/server/GameState.java | |||
@@ -104,11 +104,10 @@ public final class GameState { | |||
104 | return Stream.concat( | 104 | return Stream.concat( |
105 | blasts0.stream() | 105 | blasts0.stream() |
106 | .filter(blastSeq -> !blastSeq.tail().isEmpty()) | 106 | .filter(blastSeq -> !blastSeq.tail().isEmpty()) |
107 | .filter(blastSeq -> board0.blockAt(blastSeq.head()).isFree()) | ||
107 | .map(Sq::tail), | 108 | .map(Sq::tail), |
108 | explosions0.stream() | 109 | explosions0.stream() |
109 | .map(Sq::head) | 110 | .map(Sq::head)) |
110 | ) | ||
111 | .filter(blastSeq -> board0.blockAt(blastSeq.head()).isFree()) | ||
112 | .collect(Collectors.toList()); | 111 | .collect(Collectors.toList()); |
113 | } | 112 | } |
114 | 113 | ||