Remove isEnabled check in sitting

IsEnabled check is not necessary here. It should not have been included, as it was a left over from testing for migrating sitting to ACEX.
This commit is contained in:
Glowbal 2016-05-21 00:41:49 +02:00
parent 487400b142
commit dd60ac8170

View File

@ -3,12 +3,10 @@
// Exit on Headless
if (!hasInterface) exitWith {};
GVAR(isEnabled) = false;
["SettingsInitialized", {
if ([[QUOTE(ADDON), QGVAR(enable)], ["acex_sitting", "acex_sitting_enable"], "3.8.0"] call EFUNC(common,deprecateComponent)) exitwith {};
//If not enabled, then do not add CanInteractWith Condition or event handlers:
if (!GVAR(enable) || GVAR(isEnabled)) exitWith {};
GVAR(isEnabled) = true;
if (!GVAR(enable)) exitWith {};
// Add interaction menu exception
["isNotSitting", {isNil {(_this select 0) getVariable QGVAR(isSitting)}}] call EFUNC(common,addCanInteractWithCondition);