summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-30 14:19:57 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-30 14:19:57 +0100
commit3a9ec668a055519e163e6dbfb0f78d382bb4b39c (patch)
tree9b0928c93f510d80c1b6c760e24887d7cf7abae2 /core/src/ch/asynk/tankontank
parent26ef6e40f1121e3ecf1338a8d47c510048158c08 (diff)
downloadRustAndDust-3a9ec668a055519e163e6dbfb0f78d382bb4b39c.zip
RustAndDust-3a9ec668a055519e163e6dbfb0f78d382bb4b39c.tar.gz
Board: clean up int collectMoveAssists(Pawn, PawnCollection)
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Board.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java
index 6d1a2ab..f3faa01 100644
--- a/core/src/ch/asynk/tankontank/engine/Board.java
+++ b/core/src/ch/asynk/tankontank/engine/Board.java
@@ -287,7 +287,7 @@ public abstract class Board implements Disposable
Iterator<Pawn> pawns = t.iterator();
while(pawns.hasNext()) {
Pawn p = pawns.next();
- if ((p != null) && p.canMove() && !pawn.isEnemy(p))
+ if (!pawn.isEnemy(p) && p.canMove())
assists.add(p);
}
}