summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-06-02 12:07:50 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-06-02 12:07:50 +0200
commitc53857371fbf67eedf0d71830bceb9315b410503 (patch)
tree682789b7d630e48b5470414a4f30f6b6f5e65d1d /core/src/ch/asynk
parentbfb98786729afd0fd043d42e18dfd0eb5d5807a3 (diff)
downloadRustAndDust-c53857371fbf67eedf0d71830bceb9315b410503.zip
RustAndDust-c53857371fbf67eedf0d71830bceb9315b410503.tar.gz
Map5Marshal: do not write player id, this is not network transparent
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/game/map/Map5Marshal.java2
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);