Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions addons/sitting/functions/fnc_canSit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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)} &&
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why pass an empty array when it's the default value anyway?

Comment thread
LinkIsGrim marked this conversation as resolved.
Outdated
{isNil {_player getVariable QGVAR(sittingStatus)}} &&
{
private _seatsClaimed = _seat getVariable [QGVAR(seatsClaimed), []];
Expand Down