| summaryrefslogtreecommitdiff | 
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2019-01-17 17:20:15 +0100 | 
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2019-01-17 17:20:15 +0100 | 
| commit | 3414cdf4369d7dd0a51e64632ecd3b99843e7074 (patch) | |
| tree | 403b56bbb57b4d60cf571cf506734ddf7f433a3b /src | |
| parent | 06eaf5b16fb88113a39380b70dd9e0b7d5a8bfca (diff) | |
Solves the permission issue with the battles.
Diffstat (limited to 'src')
| -rw-r--r-- | src/bounty/bnt_join_battle.erl | 14 | 
1 files changed, 13 insertions, 1 deletions
| diff --git a/src/bounty/bnt_join_battle.erl b/src/bounty/bnt_join_battle.erl index 89de5f7..5476a80 100644 --- a/src/bounty/bnt_join_battle.erl +++ b/src/bounty/bnt_join_battle.erl @@ -413,6 +413,18 @@ add_to_pending_battle     S0PendingBattle = btl_pending_battle:set_battle(S1Battle, PendingBattle),     S1PendingBattle =        btl_pending_battle:set_free_slots(RemainingSlots, S0PendingBattle), +   S2PendingBattle = +      btl_pending_battle:set_player_ids +      ( +         [PlayerID|btl_pending_battle:get_player_ids(S1PendingBattle)], +         S1PendingBattle +      ), +   S3PendingBattle = +      btl_pending_battle:set_player_summary_ixs +      ( +         [PlayerIX|btl_pending_battle:get_player_summary_ixs(S1PendingBattle)], +         S2PendingBattle +      ),     Update =        ataxic:sequence @@ -447,7 +459,7 @@ add_to_pending_battle           ]        ), -   {S1PendingBattle, Update}. +   {S3PendingBattle, Update}.  %%%% STAGE -1: CREATING THE PENDING BATTLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  -spec generate_pending_battle | 


