From 5c0bba1f2629bf874df2a5253405e0d02f998ec9 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Thu, 11 Oct 2018 19:39:57 +0200 Subject: Fixes map addition. --- src/map/struct/map_map.erl | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/map') diff --git a/src/map/struct/map_map.erl b/src/map/struct/map_map.erl index 0e9474b..cc30645 100644 --- a/src/map/struct/map_map.erl +++ b/src/map/struct/map_map.erl @@ -147,12 +147,5 @@ default (Owner) -> width = 32, height = 32, tile_instances = - array:new - ( - [ - {size, 1024}, - {default, DefaultTileInstance}, - {fixed, true} - ] - ) + array:from_list(lists:duplicate(1024, DefaultTileInstance)) }. -- cgit v1.2.3-70-g09d2