Interact menu - Fix condition in consolidated menu (#9946)

Fix condition in consolidated menu
This commit is contained in:
Dystopian 2024-04-25 09:23:10 +04:00 committed by GitHub
parent 1eca83db9f
commit a12ad9ec59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,14 +109,14 @@ if ((_activeChildren isEqualTo []) && {_statementCode isEqualTo {}}) exitWith {
if (GVAR(consolidateSingleChild) && {count _activeChildren == 1} && {_statementCode isEqualTo {}}) then { if (GVAR(consolidateSingleChild) && {count _activeChildren == 1} && {_statementCode isEqualTo {}}) then {
_activeChildren select 0 params ["_childActionData", "_childChildren", "_childObject"]; _activeChildren select 0 params ["_childActionData", "_childChildren", "_childObject"];
_childActionData params ["", "_displayNameChild", "_iconChild", "_statementChild", "", "", "_customParamsChild", "", "", "_paramsChild"]; _childActionData params ["", "_displayNameChild", "_iconChild", "_statementChild", "_conditionChild", "_insertChildrenChild", "_customParamsChild", "", "", "_paramsChild"];
_origActionData = [ _origActionData = [
_actionName, _actionName,
format ["%1 > %2", _displayName, _displayNameChild], format ["%1 > %2", _displayName, _displayNameChild],
_iconChild, _iconChild,
_statementChild, _statementChild,
_conditionCode, _conditionChild,
_insertChildrenCode, _insertChildrenChild,
_customParamsChild, _customParamsChild,
_position, _position,
_distance, _distance,