diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-12 23:40:45 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-12 23:40:45 +0100 |
commit | 447ece22efb5c26ed1b238df806457adc502b865 (patch) | |
tree | f41fc8eaf657ccc41cb1604900e3747ea7c7a6ef /core | |
parent | 123a42ff4c9866d4dee570c96437cc3495d3d4f8 (diff) | |
download | RustAndDust-447ece22efb5c26ed1b238df806457adc502b865.zip RustAndDust-447ece22efb5c26ed1b238df806457adc502b865.tar.gz |
BattleHeadToHead: coding style
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java | 3 |
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; |