Skip to content

Commit

Permalink
Common - Switch to CBA_fnc_addBISPlayerEventHandler (#10183)
Browse files Browse the repository at this point in the history
* Common - Switch to `CBA_fnc_addBISPlayerEventHandler`

* Update XEH_postInit.sqf

---------

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
  • Loading branch information
PabstMirror and johnb432 authored Oct 15, 2024
1 parent a74d8a0 commit a9d4bc3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 67 deletions.
1 change: 0 additions & 1 deletion addons/common/XEH_PREP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ PREP(addActionEventHandler);
PREP(addActionMenuEventHandler);
PREP(addExplosionEventHandler);
PREP(addMapMarkerCreatedEventHandler);
PREP(addPlayerEH);

PREP(removeActionEventHandler);
PREP(removeActionMenuEventHandler);
Expand Down
63 changes: 0 additions & 63 deletions addons/common/functions/fnc_addPlayerEH.sqf

This file was deleted.

2 changes: 1 addition & 1 deletion addons/safemode/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ if (!hasInterface) exitWith {};
[_unit, "DefaultAction", _ehID] call EFUNC(common,removeActionEventHandler);

_unit setVariable [QGVAR(actionID), nil];
}] call EFUNC(common,addPlayerEH);
}] call CBA_fnc_addBISPlayerEventHandler;
3 changes: 1 addition & 2 deletions addons/ui/XEH_clientInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ GVAR(elementsSet) = createHashMap;
}] call CBA_fnc_addEventHandler;
}] call CBA_fnc_addEventHandler;

[QUOTE(ADDON), "AnimChanged", LINKFUNC(onAnimChanged), true] call EFUNC(common,addPlayerEH);

[QUOTE(ADDON), "AnimChanged", LINKFUNC(onAnimChanged), true] call CBA_fnc_addBISPlayerEventHandler;

["ACE3 Common", QGVAR(hideHud), localize LSTRING(hideHud), {
GVAR(hideHud) = !(missionNamespace getVariable [QGVAR(hideHud), false]);
Expand Down

0 comments on commit a9d4bc3

Please sign in to comment.