Pass functions by "reference" to bis event handlers (#4898)

* Pass functions by "reference" to bis event handlers

* Add Doc

* Fix
This commit is contained in:
PabstMirror
2017-02-14 10:54:37 -06:00
committed by GitHub
parent 036bb0ecd4
commit dfca4fdcf8
6 changed files with 16 additions and 7 deletions

View File

@ -34,7 +34,7 @@ switch (toLower _mode) do {
[FUNC(handleUnits), 9, _display] call CBA_fnc_addPerFrameHandler;
// Handle 3D unit icons
GVAR(iconHandler) = addMissionEventHandler ["Draw3D",FUNC(handleIcons)];
GVAR(iconHandler) = addMissionEventHandler ["Draw3D", {call FUNC(handleIcons)}];
// Populate the help window
private _help = (_display displayCtrl IDC_HELP) controlsGroupCtrl IDC_HELP_LIST;