mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix undefined variable in View Distance
This commit is contained in:
parent
df8814e344
commit
f1b1ec0d55
@ -29,10 +29,12 @@ if (_objectViewDistanceCoeff isEqualType 0) then {
|
||||
if (_objectViewDistanceCoeff > 0) then {
|
||||
setObjectViewDistance (_objectViewDistanceCoeff * viewDistance);
|
||||
} else {
|
||||
if (!isNil QGVAR(fovBasedPFHminimalViewDistance)) then {
|
||||
// Restore correct view distance when changing from FoV Based to Off
|
||||
// Restoring directly inside PFH's self-exit resulted in the need of selecting another option to take effect
|
||||
setObjectViewDistance GVAR(fovBasedPFHminimalViewDistance);
|
||||
};
|
||||
};
|
||||
} else {
|
||||
if (isNil QGVAR(fovBasedPFHminimalViewDistance)) then {
|
||||
GVAR(fovBasedPFHminimalViewDistance) = getObjectViewDistance select 0; // Minimal view distance holder and PFH isRunning variable
|
||||
|
Loading…
Reference in New Issue
Block a user