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

@@ -349,6 +349,7 @@ if (isNil "keyboard_keys") then {
(findDisplay 46) displayRemoveAllEventHandlers "KeyUp";
(findDisplay 46) displayRemoveAllEventHandlers "KeyDown";
(findDisplay 46) displayAddEventHandler ["KeyDown", preprocessFileLineNumbers (MISSION_ROOT+'keyboard.sqf')];
if (!isNil "bis_fnc_halo_para_keydown_eh") then {bis_fnc_halo_para_keydown_eh = (finddisplay 46) displayAddEventHandler ["keydown","_this call bis_fnc_halo_keydown;"];}; // halo in progress
//diag_log [diag_ticktime, __FILE__, "eh reset" ];
};