summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game/hud
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-02-20 10:43:53 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-02-20 10:43:53 +0100
commit10311c96e531df6869f78fe9c9c92052798f8753 (patch)
tree1cf6265d99f4fd055a0882d0cc9d64cd036a9d93 /core/src/ch/asynk/tankontank/game/hud
parentefc2a97e12612f3ec515b1fe10c4151f1a1ccb17 (diff)
downloadRustAndDust-10311c96e531df6869f78fe9c9c92052798f8753.zip
RustAndDust-10311c96e531df6869f78fe9c9c92052798f8753.tar.gz
Engagement: remove attackerArmy and defenderArmy
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/hud')
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/EngagementPanel.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/EngagementPanel.java b/core/src/ch/asynk/tankontank/game/hud/EngagementPanel.java
index e524bf7..9e9df1c 100644
--- a/core/src/ch/asynk/tankontank/game/hud/EngagementPanel.java
+++ b/core/src/ch/asynk/tankontank/game/hud/EngagementPanel.java
@@ -94,9 +94,9 @@ public class EngagementPanel extends Patch implements Animation
attackR.write(String.format(" %2d", e.attackSum));
defenseR.write(String.format(" %2d", e.defenseSum));
if (e.success)
- winner = ((e.attackerArmy == Army.US) ? usFlag : geFlag);
+ winner = ((e.attacker.getArmy() == Army.US) ? usFlag : geFlag);
else
- winner = ((e.attackerArmy == Army.US) ? geFlag : usFlag);
+ winner = ((e.attacker.getArmy() == Army.US) ? geFlag : usFlag);
this.position = position;
placeElements();