From b48e53b8b9449744d271167a10634f0d0566c72c Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sun, 15 Sep 2024 19:47:34 -0500 Subject: [PATCH 1/2] Sitting - Fix sitting on carried objects --- addons/sitting/functions/fnc_canSit.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/sitting/functions/fnc_canSit.sqf b/addons/sitting/functions/fnc_canSit.sqf index 4328234bd90..014e883ac0f 100644 --- a/addons/sitting/functions/fnc_canSit.sqf +++ b/addons/sitting/functions/fnc_canSit.sqf @@ -21,6 +21,7 @@ params ["_seat", "_player", ["_seatPos", 0]]; // Sitting enabled, not occupied and standing up (or not on a big slope) XGVAR(enable) && +{[_player, _seat, []] call EFUNC(common,canInteractWith)} && {isNil {_player getVariable QGVAR(sittingStatus)}} && { private _seatsClaimed = _seat getVariable [QGVAR(seatsClaimed), []]; From 0b954a59ce3ff694f3c79a23f1bdca53d6defb5b Mon Sep 17 00:00:00 2001 From: Grim <69561145+LinkIsGrim@users.noreply.github.com> Date: Tue, 17 Sep 2024 14:02:09 -0300 Subject: [PATCH 2/2] Update addons/sitting/functions/fnc_canSit.sqf --- addons/sitting/functions/fnc_canSit.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sitting/functions/fnc_canSit.sqf b/addons/sitting/functions/fnc_canSit.sqf index 014e883ac0f..609bcea6828 100644 --- a/addons/sitting/functions/fnc_canSit.sqf +++ b/addons/sitting/functions/fnc_canSit.sqf @@ -21,7 +21,7 @@ params ["_seat", "_player", ["_seatPos", 0]]; // Sitting enabled, not occupied and standing up (or not on a big slope) XGVAR(enable) && -{[_player, _seat, []] call EFUNC(common,canInteractWith)} && +{[_player, _seat] call EFUNC(common,canInteractWith)} && {isNil {_player getVariable QGVAR(sittingStatus)}} && { private _seatsClaimed = _seat getVariable [QGVAR(seatsClaimed), []];