summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-05-20 08:40:25 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-05-20 08:40:25 +0200
commit2b4477711a24e5d69364d9a7f082b5413337f9f4 (patch)
tree61f7f68d54342ac93cbb672170c37cbf9dc7d500
parente947029d39b6bcc7f17d1dfc4c1d3adce3d15c5d (diff)
downloadRustAndDust-2b4477711a24e5d69364d9a7f082b5413337f9f4.zip
RustAndDust-2b4477711a24e5d69364d9a7f082b5413337f9f4.tar.gz
InfantryFireAnimation: fix fireRegion init
-rw-r--r--core/src/ch/asynk/rustanddust/engine/gfx/animations/InfantryFireAnimation.java1
1 files changed, 1 insertions, 0 deletions
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;