From 90cd568cac97af9dba5fdcadcae68ebc533616fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 23 Mar 2016 10:00:03 +0100 Subject: Map4Orders: engagement, activatedUnits is already filled --- core/src/ch/asynk/rustanddust/game/map/Map4Orders.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java b/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java index 3eb4d19..dd133ca 100644 --- a/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java +++ b/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java @@ -210,12 +210,6 @@ public abstract class Map4Orders extends Map3Animations resolveEngagement(e); activableUnits.clear(); - activatedUnits.clear(); - - activatedUnits.add(e.attacker); - for (Unit u : e.assists) - activatedUnits.add(u); - for (Unit u : activatedUnits) { u.engage(); if (u.canBreak()) -- cgit v1.1-2-g2b99