Skip to content

Commit

Permalink
Merge pull request #3181 from acemod/leaveMyPlugsAlone
Browse files Browse the repository at this point in the history
Do not add or remove earplugs if gear should be preserved
  • Loading branch information
thojkooi committed Jan 19, 2016
2 parents 46f8323 + 0a91dfa commit 5c1f55a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/hearing/functions/fnc_handleRespawn.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ TRACE_2("params",_unit,typeOf _unit);

if (!local _unit) exitWith {}; //XEH should only be called on local units

//Do not add or remove earplugs if gear should be preserved
if (missionNamespace getVariable [QEGVAR(respawn,SavePreDeathGear), false]) exitWith {};

private _respawn = [0] call BIS_fnc_missionRespawnType;

//if respawn is not Group or side:
Expand Down

0 comments on commit 5c1f55a

Please sign in to comment.