summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2017-11-21 17:35:32 +0100 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2017-11-21 17:35:32 +0100 |
commit | f633e4d5320806f13b4cffa8dbef0f59a08ae90f (patch) | |
tree | 00759914fa79b18577e0cc0368403db4ee60d8f4 /www/handler/battlemap/load_state.yaws | |
parent | eea0d1d6d519bba540c261787a6223536abf237b (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.yaws | 4 |
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)} ] } ). |