Skip to content

Commit

Permalink
Master fix jerrycanrefuel (#686)
Browse files Browse the repository at this point in the history
* fix fn_jerrycanrefuel

removed/commented out setting life_action_isUse and life_interruped to false directly within exitWith to trigger if() after the loop to return from it before the full jerrycan is given to inventory

* Update fn_jerryCanRefuel.sqf

removed commented out stuff as requested
  • Loading branch information
cryptearth authored May 28, 2020
1 parent ee0fbc3 commit 86f766e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Altis_Life.Altis/core/items/fn_jerryCanRefuel.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ if (_action) then {
_progress progressSetPosition _cP;
_pgText ctrlSetText format ["%3 (%1%2)...",round(_cP * 100),"%",_title];
if (_cP >= 1) exitWith {};
if (!alive player) exitWith {life_action_inUse = false;};
if (life_interrupted) exitWith {life_interrupted = false; life_action_inUse = false;};
if (!alive player) exitWith {};
if (life_interrupted) exitWith {};
};

//Kill the UI display and check for various states
Expand All @@ -77,4 +77,4 @@ if (_action) then {
hint localize "STR_NOTF_ActionCancel";
closeDialog 0;
life_action_inUse = false;
};
};

0 comments on commit 86f766e

Please sign in to comment.