From 6869f9a8aaab7618dd49cbb47388838fc883ceb9 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Thu, 2 Aug 2018 20:23:01 +0200 Subject: Getting the map editor up to date... --- src/map/reply/map_set_map.erl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/map/reply/map_set_map.erl') diff --git a/src/map/reply/map_set_map.erl b/src/map/reply/map_set_map.erl index 336c9b2..a4fc01a 100644 --- a/src/map/reply/map_set_map.erl +++ b/src/map/reply/map_set_map.erl @@ -25,7 +25,11 @@ generate (Map) -> {<<"h">>, map_map:get_height(Map)}, { <<"t">>, - array:sparse_to_list(map_map:get_tile_class_ids(Map)) + lists:map + ( + fun map_tile:instance_to_int_list/1, + array:sparse_to_list(map_map:get_tile_instances(Map)) + ) } ] }. -- cgit v1.2.3-70-g09d2