Skip to content

Commit

Permalink
Merge pull request #1360 from Vdauphin/FIX-respawn_wrong_value_tickets
Browse files Browse the repository at this point in the history
FIX: Player's ticket saved is wrong after processing a prisoner for player who never died
  • Loading branch information
Vdauphin authored Apr 24, 2022
2 parents 9620e5c + 5fedea7 commit 65c8999
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ if !(_player isEqualTo objNull) then {

if (_uid isEqualTo "") exitWith {};

private _ticketValue = _ticket + (btc_respawn_tickets getOrDefault [_uid, 0]);
private _ticketValue = _ticket + (btc_respawn_tickets getOrDefault [_uid, btc_p_respawn_ticketsAtStart]);
btc_respawn_tickets set [_uid, _ticketValue];
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ if (btc_debug_log) then {
if (btc_debug_log) then {
[format ["_respawnTickets %1 _tickets %2 _uid %3", _respawnTickets, _tickets, _this], __FILE__, [false]] call btc_debug_fnc_message;
};
}, _uid, 20 * 60] call CBA_fnc_waitUntilAndExecute;
}, _uid, 4 * 60] call CBA_fnc_waitUntilAndExecute;

0 comments on commit 65c8999

Please sign in to comment.