summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-10-11 19:39:57 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-10-11 19:39:57 +0200
commit5c0bba1f2629bf874df2a5253405e0d02f998ec9 (patch)
tree6887b58744325909e6b789adf64a3981972465f2 /src/special/spe_map.erl
parentaea6e1872eeccffdef926b6561767ff59aecf87e (diff)
Fixes map addition.
Diffstat (limited to 'src/special/spe_map.erl')
-rw-r--r--src/special/spe_map.erl10
1 files changed, 4 insertions, 6 deletions
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(),