summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2017-11-21 17:35:32 +0100
committernsensfel <SpamShield0@noot-noot.org>2017-11-21 17:35:32 +0100
commitf633e4d5320806f13b4cffa8dbef0f59a08ae90f (patch)
tree00759914fa79b18577e0cc0368403db4ee60d8f4 /www/handler/battlemap/load_state.yaws
parenteea0d1d6d519bba540c261787a6223536abf237b (diff)
Server/client disagreement on tile crossing cost.
Diffstat (limited to 'www/handler/battlemap/load_state.yaws')
-rw-r--r--www/handler/battlemap/load_state.yaws4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/handler/battlemap/load_state.yaws b/www/handler/battlemap/load_state.yaws
index d68c6a4..5c37764 100644
--- a/www/handler/battlemap/load_state.yaws
+++ b/www/handler/battlemap/load_state.yaws
@@ -1,7 +1,7 @@
<erl>
-record(input, {session_token, player_id, battlemap_id, instance_id}).
--include("/tmp/timed_cache_data.hrl").
+-include("/my/src/tacticians-server/src/timed_cache_data.hrl").
parse_input (Req) ->
JSONReqMap = jiffy:decode(Req, [return_maps]),
@@ -20,7 +20,7 @@ generate_set_map (Battlemap) ->
[
{<<"width">>, Battlemap#battlemap.width},
{<<"height">>, Battlemap#battlemap.height},
- {<<"content">>, array:to_list(Battlemap#battlemap.content)}
+ {<<"content">>, array:sparse_to_list(Battlemap#battlemap.content)}
]
}
).