Skip to content

Commit

Permalink
Merge pull request #3293 from acemod/fix3270
Browse files Browse the repository at this point in the history
Slightly reduce the distance for which the LOS check is skipped.
  • Loading branch information
thojkooi committed Feb 17, 2016
2 parents 26cb6bd + cebc8a2 commit e31e20b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/interact_menu/functions/fnc_renderBaseMenu.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ if ((GVAR(openedMenuType) == 0) && {vehicle ACE_player == ACE_player} && {isNull

if (_distanceToBasePoint > _distance) exitWith {true};

if ((_distanceToBasePoint > 1.5) && {!(_params select 4)}) exitWith {
// If distance to action is greater than 1.5 m and check isn't disabled in params, check LOS
if ((_distanceToBasePoint > 1.2) && {!(_params select 4)}) exitWith {
// If distance to action is greater than 1.2 m and check isn't disabled in params, check LOS
lineIntersects [AGLtoASL _headPos, AGLtoASL _pos, _object, ACE_player]
};
false
Expand Down

0 comments on commit e31e20b

Please sign in to comment.