summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/bounty/bnt_join_battle.erl')
-rw-r--r--src/bounty/bnt_join_battle.erl12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/bounty/bnt_join_battle.erl b/src/bounty/bnt_join_battle.erl
index 78c4ea4..fa5d36e 100644
--- a/src/bounty/bnt_join_battle.erl
+++ b/src/bounty/bnt_join_battle.erl
@@ -429,17 +429,9 @@ add_to_pending_battle
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
- ),
+ btl_pending_battle:push_player_id(PlayerID, S1PendingBattle),
S3PendingBattle =
- btl_pending_battle:set_player_summary_ixs
- (
- [PlayerIX|btl_pending_battle:get_player_summary_ixs(S1PendingBattle)],
- S2PendingBattle
- ),
+ btl_pending_battle:push_player_summary_ix(PlayerIX, S2PendingBattle),
Update =
ataxic:sequence