From 8d91f62423e6e7b7914666fd4d43b41e6ff098bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 16 Dec 2015 11:04:43 +0100 Subject: HeadedPawn: draw the head over the body --- core/src/ch/asynk/rustanddust/engine/HeadedPawn.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/engine/HeadedPawn.java b/core/src/ch/asynk/rustanddust/engine/HeadedPawn.java index f982cd1..c26610f 100644 --- a/core/src/ch/asynk/rustanddust/engine/HeadedPawn.java +++ b/core/src/ch/asynk/rustanddust/engine/HeadedPawn.java @@ -79,16 +79,16 @@ public abstract class HeadedPawn extends Pawn @Override public void draw(Batch batch) { - head.draw(batch); super.draw(batch); + head.draw(batch); } @Override public void drawDebug(ShapeRenderer debugShapes) { + super.drawDebug(debugShapes); float w = head.getWidth(); float h = head.getHeight(); debugShapes.rect(head.getX(), head.getY(), (w / 2f), (h / 2f), w, h, head.getScaleX(), head.getScaleY(), head.getRotation()); - super.drawDebug(debugShapes); } } -- cgit v1.1-2-g2b99