From 447ece22efb5c26ed1b238df806457adc502b865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 12 Nov 2014 23:40:45 +0100 Subject: BattleHeadToHead: coding style --- core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit v1.1-2-g2b99