From c53857371fbf67eedf0d71830bceb9315b410503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 2 Jun 2016 12:07:50 +0200 Subject: Map5Marshal: do not write player id, this is not network transparent --- core/src/ch/asynk/rustanddust/game/map/Map5Marshal.java | 2 -- 1 file changed, 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 fed1840..7c30436 100644 --- a/core/src/ch/asynk/rustanddust/game/map/Map5Marshal.java +++ b/core/src/ch/asynk/rustanddust/game/map/Map5Marshal.java @@ -51,7 +51,6 @@ public abstract class Map5Marshal extends Map4Orders implements Marshal private void unloadPlayer(Json json, Player player) { json.writeObjectStart(); - json.writeValue("id", player.id); json.writeValue("a", player.army); json.writeArrayStart("v"); json.writeValue(player.getTurn()); @@ -284,7 +283,6 @@ public abstract class Map5Marshal extends Map4Orders implements Marshal private Player loadPlayer(JsonValue v) { Player p = new Player(Army.valueOf(v.getString("a"))); - p.id = v.getInt("id"); JsonValue a = v.get("v"); p.setTurn(a.getInt(0), a.getInt(1), a.getInt(2)); p.actionCount = a.getInt(3); -- cgit v1.1-2-g2b99