removed unused variables & EHs and set defaults in the case debug mode draw isn't used

This commit is contained in:
lambdatiger 2024-07-29 20:40:39 -05:00
parent 160bb15962
commit 3efaef09ec

View File

@ -6,11 +6,8 @@ PREP_RECOMPILE_START;
#include "XEH_PREP.hpp" #include "XEH_PREP.hpp"
PREP_RECOMPILE_END; PREP_RECOMPILE_END;
call FUNC(initMaterialCache);
GVAR(spallInfoCache) = createHashMap; GVAR(spallInfoCache) = createHashMap;
GVAR(shouldSpallCache) = createHashMap; GVAR(shouldSpallCache) = createHashMap;
GVAR(nextSpallAllowTime) = -1;
GVAR(shouldFragCache) = createHashMap; GVAR(shouldFragCache) = createHashMap;
GVAR(fragInfoCache) = createHashMap; GVAR(fragInfoCache) = createHashMap;
@ -25,11 +22,14 @@ GVAR(dev_drawPFEH) = -1;
#ifdef DEBUG_MODE_DRAW #ifdef DEBUG_MODE_DRAW
#include "initSettingsDebug.inc.sqf" #include "initSettingsDebug.inc.sqf"
#else
GVAR(debugOptions) = false;
GVAR(dbgSphere) = false;
GVAR(drawHitBox) = false;
#endif #endif
if (isServer) then { if (isServer) then {
[QGVAR(frag_eh), LINKFUNC(frago)] call CBA_fnc_addEventHandler; [QGVAR(frag_eh), LINKFUNC(frago)] call CBA_fnc_addEventHandler;
[QGVAR(spallEvent), LINKFUNC(doSpallServer)] call CBA_fnc_addEventHandler;
}; };
ADDON = true; ADDON = true;