Remove unnecessary key event handler reset

No need to reset the key event handler again in player_monitor.fsm, it
is already done onPreloadFinished.
This commit is contained in:
ebaydayz
2016-04-15 20:16:13 -04:00
parent 110befba7f
commit 993ce14da6
5 changed files with 8 additions and 11 deletions

View File

@@ -3,20 +3,17 @@ disableSerialization;
_control = _this select 0;
_button = _this select 1;
_parent = findDisplay 106;
_itemData = gearSlotData _control;
if (carryClick) then {carryClick = false;};
// No right click option on bloodbags if DZE_SelfTransfuse = false;
if (!DZE_SelfTransfuse && {(_itemData == "ItemBloodbag") or (_itemData in dayz_typedBags)}) exitWith {};
if (_button == 1) then {
private ["_conf","_name","_compile","_height","_item"];
_group = _parent displayCtrl 6902;
_pos = ctrlPosition _group;
_item = gearSlotData _control;
_item = gearSlotData _control;
if (!DZE_SelfTransfuse && {_item == "ItemBloodbag" or _item in ["wholeBloodBagANEG","wholeBloodBagAPOS","wholeBloodBagBNEG","wholeBloodBagBPOS","wholeBloodBagABNEG","wholeBloodBagABPOS","wholeBloodBagONEG","wholeBloodBagOPOS"]}) exitWith {}; // No right click option on bloodbags if DZE_SelfTransfuse = false;
if (mouseOverCarry) then {
_item = DayZ_onBack;
carryClick = true;