From a38766a1b008347df932d7578aa99ae1ef30b4fd Mon Sep 17 00:00:00 2001 From: nsensfel Date: Fri, 18 Jan 2019 15:10:19 +0100 Subject: Looks like there are still issues with DB updates. Switching weapons does not work. In the little test I did, only one of their character got activated once the second player's turn started. --- src/bounty/bnt_join_battle.erl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/bounty/bnt_join_battle.erl') diff --git a/src/bounty/bnt_join_battle.erl b/src/bounty/bnt_join_battle.erl index eae0c98..63b57df 100644 --- a/src/bounty/bnt_join_battle.erl +++ b/src/bounty/bnt_join_battle.erl @@ -612,8 +612,14 @@ repair_create_battle ( [ ataxic:update_value(ataxic:constant(NewPendingBattle)), - ataxic:update_read_permission(ataxia_security:allow_any()), - ataxic:update_write_permission(ataxia_security:allow_any()) + ataxic:update_read_permission + ( + ataxic:constant(ataxia_security:allow_any()) + ), + ataxic:update_write_permission + ( + ataxic:constant(ataxia_security:allow_any()) + ) ] ), PBattleID @@ -823,7 +829,7 @@ repair_battle_final_links (PendingBattleID, BattleID, Battle) -> true = lists:all ( - fun (Player) -> + fun ({_, Player}) -> (repair_battle_final_link_of_player(BattleID, Player) == ok) end, orddict:to_list(Players) -- cgit v1.2.3-70-g09d2