From 50100b8178efa5fc6d20a96b66a488049a768f5f Mon Sep 17 00:00:00 2001 From: Whigital Date: Sat, 18 Mar 2023 20:28:27 +0100 Subject: [PATCH] Viewdistance - Fix viewdistance from videosettings (#9140) --- addons/viewdistance/functions/fnc_changeViewDistance.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/viewdistance/functions/fnc_changeViewDistance.sqf b/addons/viewdistance/functions/fnc_changeViewDistance.sqf index 64e906b5c1..76b5b97cf2 100644 --- a/addons/viewdistance/functions/fnc_changeViewDistance.sqf +++ b/addons/viewdistance/functions/fnc_changeViewDistance.sqf @@ -19,7 +19,7 @@ params ["_viewDistance", "_showPrompt"]; if (_viewDistance == 0) then { // Video Settings - _viewDistance = viewDistance; + _viewDistance = (getVideoOptions get "overallVisibility"); }; private _objectViewDistanceCoeff = [GVAR(objectViewDistanceCoeff)] call FUNC(returnObjectCoeff); // changes the setting index into a coefficient.