diff options
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Unit.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Unit.java b/core/src/ch/asynk/rustanddust/game/Unit.java index 6800040..582a1f5 100644 --- a/core/src/ch/asynk/rustanddust/game/Unit.java +++ b/core/src/ch/asynk/rustanddust/game/Unit.java @@ -278,6 +278,12 @@ public class Unit extends HeadedPawn updateOverlays(); } + public void setFired() + { + hasFired = true; + updateOverlays(); + } + @Override public void move() { @@ -298,8 +304,7 @@ public class Unit extends HeadedPawn @Override public void engage() { - hasFired = true; - updateOverlays(); + setFired(); } @Override |