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/special/spe_map.erl | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/special/spe_map.erl') diff --git a/src/special/spe_map.erl b/src/special/spe_map.erl index f12b0aa..418d6b5 100644 --- a/src/special/spe_map.erl +++ b/src/special/spe_map.erl @@ -7,7 +7,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% EXPORTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --export([generate/1]). +-export([grant_additional/1]). %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% LOCAL FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -16,8 +16,8 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% EXPORTED FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --spec generate (binary()) -> map_map:type(). -generate (OwnerID) -> +-spec grant_additional (binary()) -> map_map:type(). +grant_additional (OwnerID) -> Map = map_map:default(OwnerID), {ok, MapID} = @@ -29,12 +29,10 @@ generate (OwnerID) -> Map ), - MapSummary = shr_map_summary:new(<<"Untitled Map">>, MapID), + MapSummary = shr_map_summary:new(MapID, <<"Untitled Map">>), PlayerUpdateQueryOps = [ - %% FIXME: shr_db_query:add_to_field handles lists, - %% shr_player:get_map_summaries_field() points to an array. shr_db_query:add_to_field ( shr_player:get_map_summaries_field(), -- cgit v1.2.3-70-g09d2