From a8797fe45adf4b5a8b30c98a8128d6f440e98a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Badano?= Date: Thu, 19 Feb 2015 12:02:48 -0300 Subject: [PATCH] Fix for the angular spacing of submenus --- addons/interact_menu/functions/fnc_renderMenu.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/interact_menu/functions/fnc_renderMenu.sqf b/addons/interact_menu/functions/fnc_renderMenu.sqf index 1072a53906..532762d41b 100644 --- a/addons/interact_menu/functions/fnc_renderMenu.sqf +++ b/addons/interact_menu/functions/fnc_renderMenu.sqf @@ -75,9 +75,9 @@ if(_cursorScreenPos distance _pos <= _distance) then { (_pos select 1) + ((_offset select 1)*_mod), (_pos select 2) + ((_offset select 2)*_mod) ]; - // drawLine3D [_pos, _newPos, [1,0,0,1]]; + // drawLine3D [_pos, _newPos, [1,0,0,0.5]]; [_object, _x, _forEachIndex, [_angle, 180], _newPos, _path] call FUNC(renderMenu); - _angle = _angle + _angleSpan / (_numActions); + _angle = _angle + _angleSpan / ((_numActions-1) max 1); }; } forEach (_actionData select 6); };