summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-08-02 20:23:01 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-08-02 20:23:01 +0200
commit6869f9a8aaab7618dd49cbb47388838fc883ceb9 (patch)
tree271d743e9ece766a3fd6fb21c9c6ca608b06d9c5 /src/map/reply/map_set_map.erl
parentc0349f22f281940bd2f9b3cf670b21dc895dca85 (diff)
Getting the map editor up to date...
Diffstat (limited to 'src/map/reply/map_set_map.erl')
-rw-r--r--src/map/reply/map_set_map.erl6
1 files changed, 5 insertions, 1 deletions
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))
+ )
}
]
}.