summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/map/Map5Marshal.java4
1 files 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");