fix key input not working

This commit is contained in:
commy2
2015-01-13 17:42:56 +01:00
parent e575e6027e
commit 2336b51e5b
3 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
// by commy2
#include "\z\ace\addons\common\script_component.hpp"
_config = configFile >> ACE_Default_Keys;
_config = configFile >> "ACE_Default_Keys";
_count = count _config;
_header = format ["_keyCode = [_this select 1, _this select 2, _this select 3, _this select 4] call %1; _keyIndex = floor _keyCode; if (_keyIndex == 0) exitWith {false}; if (!(profileNamespace getVariable ['ACE_enableNumberHotkeys', true]) && {_keyIndex < 12} && {_keyIndex > 1} && {_keyCode mod 1 == 0}) exitWith {false}; _time = time; _player = ACE_player; _vehicle = vehicle _player; _isInput = false;", QUOTE(FUNC(convertKeyCode))];