Call updateHearingProtection at settings init

This commit is contained in:
PabstMirror 2016-02-17 09:49:00 -06:00
parent 649b0c28e2
commit 930c2f84c6

View File

@ -36,4 +36,6 @@ GVAR(damageCoefficent) = 1;
//Update protection on possible helmet change //Update protection on possible helmet change
["playerInventoryChanged", {[] call FUNC(updateHearingProtection);}] call EFUNC(common,addEventhandler); ["playerInventoryChanged", {[] call FUNC(updateHearingProtection);}] call EFUNC(common,addEventhandler);
//Update hearing protection now:
[] call FUNC(updateHearingProtection);
}] call EFUNC(common,addEventHandler); }] call EFUNC(common,addEventHandler);