Skip to content

Commit

Permalink
Merge pull request #1254 from mharis001/optics-curator
Browse files Browse the repository at this point in the history
Fix optics camera restart handling for Zeus
  • Loading branch information
commy2 committed Nov 16, 2019
2 parents c73f3c8 + 83e276c commit 70563e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions addons/optics/fnc_restartCamera.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ Author:
commy2
---------------------------------------------------------------------------- */

if (!GVAR(usePipOptics)) exitWith {};
if (configProperties [configFile >> "CBA_PIPItems"] isEqualTo []) exitWith {};
if (isNull (uiNamespace getVariable ["RscDisplayMission", displayNull])) exitWith {};
if (
!GVAR(usePipOptics)
|| {configProperties [configFile >> "CBA_PIPItems"] isEqualTo []}
|| {isNull (uiNamespace getVariable ["RscDisplayMission", displayNull])}
|| {!isNull (uiNamespace getVariable ["RscDisplayCurator", displayNull])}
) exitWith {};

params ["_unit", ["_reset", true]];

Expand Down
8 changes: 4 additions & 4 deletions addons/optics/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#define COMPONENT optics
#define COMPONENT optics
#include "\x\cba\addons\main\script_mod.hpp"

//#define DEBUG_MODE_FULL
//#define DISABLE_COMPILE_CACHE
//#define DEBUG_ENABLED_OPTICS
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define DEBUG_ENABLED_OPTICS

#ifdef DEBUG_ENABLED_OPTICS
#define DEBUG_MODE_FULL
Expand Down

0 comments on commit 70563e9

Please sign in to comment.