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,9 +29,11 @@ if (_objectViewDistanceCoeff isEqualType 0) then {
|
|||||||
if (_objectViewDistanceCoeff > 0) then {
|
if (_objectViewDistanceCoeff > 0) then {
|
||||||
setObjectViewDistance (_objectViewDistanceCoeff * viewDistance);
|
setObjectViewDistance (_objectViewDistanceCoeff * viewDistance);
|
||||||
} else {
|
} else {
|
||||||
// Restore correct view distance when changing from FoV Based to Off
|
if (!isNil QGVAR(fovBasedPFHminimalViewDistance)) then {
|
||||||
// Restoring directly inside PFH's self-exit resulted in the need of selecting another option to take effect
|
// Restore correct view distance when changing from FoV Based to Off
|
||||||
setObjectViewDistance GVAR(fovBasedPFHminimalViewDistance);
|
// Restoring directly inside PFH's self-exit resulted in the need of selecting another option to take effect
|
||||||
|
setObjectViewDistance GVAR(fovBasedPFHminimalViewDistance);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
if (isNil QGVAR(fovBasedPFHminimalViewDistance)) then {
|
if (isNil QGVAR(fovBasedPFHminimalViewDistance)) then {
|
||||||
|
Loading…
Reference in New Issue
Block a user