diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-06-02 12:07:50 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-06-02 12:07:50 +0200 |
commit | c53857371fbf67eedf0d71830bceb9315b410503 (patch) | |
tree | 682789b7d630e48b5470414a4f30f6b6f5e65d1d /core | |
parent | bfb98786729afd0fd043d42e18dfd0eb5d5807a3 (diff) | |
download | RustAndDust-c53857371fbf67eedf0d71830bceb9315b410503.zip RustAndDust-c53857371fbf67eedf0d71830bceb9315b410503.tar.gz |
Map5Marshal: do not write player id, this is not network transparent
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/map/Map5Marshal.java | 2 |
1 files changed, 0 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 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); |