mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Nightvision - Register effects during preInit (#9788)
This commit is contained in:
parent
cdc51643bb
commit
a47ae27080
@ -8,4 +8,7 @@ PREP_RECOMPILE_END;
|
||||
|
||||
#include "initSettings.inc.sqf"
|
||||
|
||||
// #9781 - register effects layer ASAP
|
||||
QGVAR(display) cutText ["", "PLAIN"];
|
||||
|
||||
ADDON = true;
|
||||
|
@ -48,10 +48,9 @@ if (GVAR(fogScaling) > 0) then {
|
||||
};
|
||||
};
|
||||
|
||||
// Note: Using BIS_fnc_rscLayer because of bug with string syntax - https://feedback.bistudio.com/T120768
|
||||
(QGVAR(display) call BIS_fnc_rscLayer) cutText ["", "PLAIN"]; // Cleanup Old Display
|
||||
QGVAR(display) cutText ["", "PLAIN"]; // Cleanup Old Display
|
||||
if (_activated) then { // Create New Display
|
||||
(QGVAR(display) call BIS_fnc_rscLayer) cutRsc [QGVAR(title), "PLAIN", 0, false, false]; // draw under HUD
|
||||
QGVAR(display) cutRsc [QGVAR(title), "PLAIN", 0, false, false]; // draw under HUD
|
||||
};
|
||||
|
||||
// Cleanup Old PP Effects
|
||||
|
Loading…
Reference in New Issue
Block a user