From 2b4477711a24e5d69364d9a7f082b5413337f9f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 20 May 2016 08:40:25 +0200 Subject: InfantryFireAnimation: fix fireRegion init --- .../asynk/rustanddust/engine/gfx/animations/InfantryFireAnimation.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/ch/asynk/rustanddust/engine/gfx/animations/InfantryFireAnimation.java b/core/src/ch/asynk/rustanddust/engine/gfx/animations/InfantryFireAnimation.java index e2e3cb7..ba2a803 100644 --- a/core/src/ch/asynk/rustanddust/engine/gfx/animations/InfantryFireAnimation.java +++ b/core/src/ch/asynk/rustanddust/engine/gfx/animations/InfantryFireAnimation.java @@ -167,6 +167,7 @@ public class InfantryFireAnimation implements Disposable, Animation, Pool.Poolab float x = (float) (x0 - (Math.cos(a) * w)); float y = (float) (y0 - (Math.sin(a) * w)); + shot.fireRegion.setRegion(FireAnimation.infantryFire.frames[0]); shot.set(delay, x0, y0, x, y, w, (float) Math.toDegrees(a)); delay += SHOT_DELAY; -- cgit v1.1-2-g2b99