From c095405dd09105be86a25987e3607be10fb12647 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Thu, 12 May 2016 14:58:43 +0200 Subject: Fix last dying image selection --- src/ch/epfl/xblast/server/painter/PlayerPainter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { * @return the dying image ID */ private static byte byteForDyingState(int lives) { - return lives == 0 ? LAST_DYING_IMAGE_ID : DYING_IMAGE_ID; + return lives == 1 ? LAST_DYING_IMAGE_ID : DYING_IMAGE_ID; } /** -- cgit v1.2.3