From 8976e40ae93f06788e19bc8aeef44c63c0445f39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Oct 2014 12:27:59 +0100 Subject: Unit: use common consturctor --- core/src/ch/asynk/tankontank/game/Unit.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java index 9f8c03b..5670c1b 100644 --- a/core/src/ch/asynk/tankontank/game/Unit.java +++ b/core/src/ch/asynk/tankontank/game/Unit.java @@ -65,7 +65,7 @@ public class Unit extends HeadedPawn // hard tager public Unit(Army army, UnitId id, UnitType type, int range, int defense, int movementPoints, String unit, String head, TextureAtlas pawns, TextureAtlas overlays) { - super(army, unit, head, pawns, overlays); + this(army, unit, head, pawns, overlays); this.rng = range; this.def = defense; this.mp = movementPoints; @@ -79,7 +79,7 @@ public class Unit extends HeadedPawn // soft tager public Unit(Army army, UnitId id, UnitType type, int range, int defense, int concealedDefense, int movementPoints, String unit, String head, TextureAtlas pawns, TextureAtlas overlays) { - super(army, unit, head, pawns, overlays); + this(army, unit, head, pawns, overlays); this.rng = range; this.def = defense; this.cdef = concealedDefense; -- cgit v1.1-2-g2b99