aboutsummaryrefslogtreecommitdiff
path: root/src/ch
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2016-05-12 14:58:43 +0200
committerPacien TRAN-GIRARD2016-05-12 14:58:43 +0200
commitc095405dd09105be86a25987e3607be10fb12647 (patch)
tree05931d1d6f15efef840c78bdaa7d3a41bddf8dcb /src/ch
parent48d8fc2efc91f5a02391fb1031e7a662509f5630 (diff)
downloadxblast-c095405dd09105be86a25987e3607be10fb12647.tar.gz
Fix last dying image selection
Diffstat (limited to 'src/ch')
-rw-r--r--src/ch/epfl/xblast/server/painter/PlayerPainter.java2
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 /**