summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game/battles
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-12 23:40:45 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-12 23:40:45 +0100
commit447ece22efb5c26ed1b238df806457adc502b865 (patch)
treef41fc8eaf657ccc41cb1604900e3747ea7c7a6ef /core/src/ch/asynk/tankontank/game/battles
parent123a42ff4c9866d4dee570c96437cc3495d3d4f8 (diff)
downloadRustAndDust-447ece22efb5c26ed1b238df806457adc502b865.zip
RustAndDust-447ece22efb5c26ed1b238df806457adc502b865.tar.gz
BattleHeadToHead: coding style
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/battles')
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
index 5b7b0f3..7d17c1a 100644
--- a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
+++ b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
@@ -30,12 +30,11 @@ public class BattleHeadToHead extends BattleCommon
if ((ctrl.player.getTurn() < 10) || (ctrl.opponent.getTurn() < 10))
return null;
- Unit unit;
int player = 0;
int opponent = 0;
for (Tile tile : objectives) {
- unit = ((Hex) tile).getUnit();
+ Unit unit = ((Hex) tile).getUnit();
if (unit != null) {
if (ctrl.player.isEnemy(unit))
opponent += 1;