summaryrefslogtreecommitdiff |
diff options
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)} ] } ). |