diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-17 14:53:06 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-17 14:53:06 +0100 |
commit | ac99957ad09592e422f3e3cd0752f3e00d610ed5 (patch) | |
tree | 4e1ea2a996b9d08c1ed2a4dabc65a1955c73ff1a /core/src/ch/asynk/tankontank | |
parent | 8d6f8738203d45d4da116e390b6e6685f4636bb3 (diff) | |
download | RustAndDust-ac99957ad09592e422f3e3cd0752f3e00d610ed5.zip RustAndDust-ac99957ad09592e422f3e3cd0752f3e00d610ed5.tar.gz |
Board: coding style
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Board.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java index a7ebabf..a34a8f6 100644 --- a/core/src/ch/asynk/tankontank/engine/Board.java +++ b/core/src/ch/asynk/tankontank/engine/Board.java @@ -319,9 +319,9 @@ public abstract class Board implements Disposable assists.clear(); setAdjacentTiles(pawn.getTile(), neighbours); for (int i = 0; i < 6; i++) { - Tile t = neighbours[i]; - if (t != null) { - Iterator<Pawn> pawns = t.iterator(); + Tile tile = neighbours[i]; + if (tile != null) { + Iterator<Pawn> pawns = tile.iterator(); while(pawns.hasNext()) { Pawn p = pawns.next(); if (!pawn.isEnemy(p) && p.canMove()) |