From 01d2262fe890444c4ea31ff77c2509275205d722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 3 Feb 2016 16:07:31 +0100 Subject: Map5Marshal: call setFired(), and setMoved() on loading --- core/src/ch/asynk/rustanddust/game/map/Map5Marshal.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/game/map/Map5Marshal.java b/core/src/ch/asynk/rustanddust/game/map/Map5Marshal.java index 8491e0a..f81511f 100644 --- a/core/src/ch/asynk/rustanddust/game/map/Map5Marshal.java +++ b/core/src/ch/asynk/rustanddust/game/map/Map5Marshal.java @@ -272,8 +272,8 @@ public abstract class Map5Marshal extends Map4Orders Unit.UnitCode code = Unit.UnitCode.valueOf(v.getString("code")); JsonValue a = v.get("v"); Unit u = game.factory.getUnit(code, a.getBoolean(0), a.getBoolean(1)); - u.hasMoved = a.getBoolean(2); - u.hasFired = a.getBoolean(3); + if (a.getBoolean(2)) u.setMoved(); + if (a.getBoolean(3)) u.setFired(); u.id = unitId; if (pos) { a = v.get("p"); -- cgit v1.1-2-g2b99