diff options
author | Pacien TRAN-GIRARD | 2016-05-12 14:58:43 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2016-05-12 14:58:43 +0200 |
commit | c095405dd09105be86a25987e3607be10fb12647 (patch) | |
tree | 05931d1d6f15efef840c78bdaa7d3a41bddf8dcb | |
parent | 48d8fc2efc91f5a02391fb1031e7a662509f5630 (diff) | |
download | xblast-c095405dd09105be86a25987e3607be10fb12647.tar.gz |
Fix last dying image selection
-rw-r--r-- | src/ch/epfl/xblast/server/painter/PlayerPainter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ch/epfl/xblast/server/painter/PlayerPainter.java b/src/ch/epfl/xblast/server/painter/PlayerPainter.java index 043cb50..a366918 100644 --- a/src/ch/epfl/xblast/server/painter/PlayerPainter.java +++ b/src/ch/epfl/xblast/server/painter/PlayerPainter.java | |||
@@ -59,7 +59,7 @@ public final class PlayerPainter { | |||
59 | * @return the dying image ID | 59 | * @return the dying image ID |
60 | */ | 60 | */ |
61 | private static byte byteForDyingState(int lives) { | 61 | private static byte byteForDyingState(int lives) { |
62 | return lives == 0 ? LAST_DYING_IMAGE_ID : DYING_IMAGE_ID; | 62 | return lives == 1 ? LAST_DYING_IMAGE_ID : DYING_IMAGE_ID; |
63 | } | 63 | } |
64 | 64 | ||
65 | /** | 65 | /** |