summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-02-26 17:16:08 +0100
committernsensfel <SpamShield0@noot-noot.org>2018-02-26 17:16:08 +0100
commit6494b74a45e27085fd81836f7b8c969431e8ff3c (patch)
treee344a24fa2e9a2ee198314c0552c46b235072009 /src/reply/set_map.erl
parentfd4d031ab5b31763d376c663cc049f62ee389243 (diff)
Got it to work, I think.
Diffstat (limited to 'src/reply/set_map.erl')
-rw-r--r--src/reply/set_map.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reply/set_map.erl b/src/reply/set_map.erl
index ba1ddbb..5a2cf55 100644
--- a/src/reply/set_map.erl
+++ b/src/reply/set_map.erl
@@ -19,7 +19,7 @@ encode (Battlemap) ->
[
{<<"w">>, battlemap:get_width(Battlemap)},
{<<"h">>, battlemap:get_height(Battlemap)},
- {<<"t">>, array:to_list(battlemap:list_tiles(Battlemap))}
+ {<<"t">>, array:sparse_to_list(battlemap:get_tile_ids(Battlemap))}
]
}
).