summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-07 15:50:04 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-07 15:50:04 +0100
commit7888d89f5c3075e4bb731549a7ec8dc195b77a73 (patch)
treec31bb400b9dca1ca3d338d9eabc18f81b334dd0e
parent841299b0181dd407b718f8b1a921cc9f563a1f1e (diff)
downloadRustAndDust-7888d89f5c3075e4bb731549a7ec8dc195b77a73.zip
RustAndDust-7888d89f5c3075e4bb731549a7ec8dc195b77a73.tar.gz
Map: remove useless brackets
-rw-r--r--core/src/ch/asynk/rustanddust/game/Map.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Map.java b/core/src/ch/asynk/rustanddust/game/Map.java
index 24e694f..60c445b 100644
--- a/core/src/ch/asynk/rustanddust/game/Map.java
+++ b/core/src/ch/asynk/rustanddust/game/Map.java
@@ -192,13 +192,14 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS
public int collectMoveableUnits(Unit unit)
{
- if (unit.canHQMove()) {
- collectMoveAssists(unit, moveableUnits.asPawns());
- } else {
+ if (unit.canHQMove())
+ collectMoveAssists(unit, moveableUnits.asPawns());
+ else
moveableUnits.clear();
- }
+
if (unit.canMove())
moveableUnits.add(unit);
+
return moveableUnits.size();
}