Skip to content

Commit 4abae0f

Browse files
Nightvision - Fixes Exploit with FogScaling (#10299)
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
1 parent 4092ddd commit 4abae0f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

addons/nightvision/functions/fnc_pfeh.sqf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ if (CBA_missionTime < GVAR(nextEffectsUpdate)) then {
163163
};
164164

165165
_fogApply = linearConversion [0, 1, GVAR(priorFog) select 0, (GVAR(fogScaling) * _fogApply), 1]; // mix in old fog if present
166-
GVAR(nvgFog) = [_fogApply, 0, 0];
166+
GVAR(nvgFog) = fogParams;
167+
GVAR(nvgFog) set [0, _fogApply];
168+
167169
0 setFog GVAR(nvgFog)
168170
};
169171

0 commit comments

Comments
 (0)