From 9bd190fb06347311a054b8f4a50ccd8396e598b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 19 Jan 2015 17:45:35 +0100 Subject: BattleTest: fix setUnit(), ctrl.player must be set --- core/src/ch/asynk/tankontank/game/battles/BattleTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleTest.java b/core/src/ch/asynk/tankontank/game/battles/BattleTest.java index 468f860..d4d891f 100644 --- a/core/src/ch/asynk/tankontank/game/battles/BattleTest.java +++ b/core/src/ch/asynk/tankontank/game/battles/BattleTest.java @@ -85,6 +85,7 @@ public class BattleTest extends BattleCommon map.addObjective(6, 4, Army.NONE); map.addHoldObjective(5, 3, Army.NONE); + ctrl.player = gePlayer; setUnit(map, gePlayer, UnitId.GE_TIGER, 6, 4, Orientation.NORTH, null); Zone geEntry = new Zone(map, 6); geEntry.orientation = Orientation.NORTH; @@ -103,6 +104,7 @@ public class BattleTest extends BattleCommon usExit.add(map.getHex(12, 6)); addExitZone(usExit); + ctrl.player = usPlayer; usPlayer.casualty(factory.getUnit(UnitId.US_SHERMAN_HQ)); setUnit(map, usPlayer, UnitId.US_PRIEST, 10, 8, Orientation.SOUTH_EAST, usExit); setUnit(map, usPlayer, UnitId.US_SHERMAN, 7, 3, Orientation.SOUTH, true, usExit); -- cgit v1.1-2-g2b99