From f633e4d5320806f13b4cffa8dbef0f59a08ae90f Mon Sep 17 00:00:00 2001 From: nsensfel Date: Tue, 21 Nov 2017 17:35:32 +0100 Subject: Server/client disagreement on tile crossing cost. --- www/handler/battlemap/load_state.yaws | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www/handler/battlemap/load_state.yaws') 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 @@ -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)} ] } ). -- cgit v1.2.3-70-g09d2