Skip to content

Commit

Permalink
delete conditional PREP, remove spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
commy2 committed Dec 27, 2018
1 parent f217af4 commit 6690574
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions addons/trenches/Cfg3DEN.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Cfg3DEN {
class EventHandlers {
class ADDON {
onMissionPreviewEnd = QUOTE([] spawn {waitUntil {!isNil QQFUNC(initTrench3DEN)}; call FUNC(initTrench3DEN)}); // Don't ask me why but this function is nil when this event triggers
onMissionLoad = QUOTE([] spawn {waitUntil {!isNil QQFUNC(initTrench3DEN)}; call FUNC(initTrench3DEN)}); // Don't ask me why but this function is nil when this event triggers
onMissionPreviewEnd = QUOTE(with uiNamespace do {call FUNC(initTrench3DEN)});
onMissionLoad = QUOTE(with uiNamespace do {call FUNC(initTrench3DEN)});
};
};
};
15 changes: 9 additions & 6 deletions addons/trenches/XEH_PREP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ PREP(placeConfirm);
PREP(placeTrench);
PREP(removeCamouflage);
PREP(removeTrench);
PREP(getSurfaceTexturePath);

if ("surfaceTexture" in (uiNamespace getVariable ["Intercept_cba_capabilities",[]])) then {
#ifdef DISABLE_COMPILE_CACHE
DFUNC(getSurfaceTexturePath) = compile preprocessFileLineNumbers QPATHTOF(functions\DOUBLES(fnc,getSurfaceTexturePathNative).sqf);
#else
[QPATHTOF(functions\DOUBLES(fnc,getSurfaceTexturePathNative).sqf), QFUNC(getSurfaceTexturePath)] call CBA_fnc_compileFunction;
#endif
/* @todo
if ("surfaceTexture" in (uiNamespace getVariable ["Intercept_cba_capabilities", []])) then {
#ifdef DISABLE_COMPILE_CACHE
DFUNC(getSurfaceTexturePath) = compile preprocessFileLineNumbers QPATHTOF(functions\DOUBLES(fnc,getSurfaceTexturePathNative).sqf);
#else
[QPATHTOF(functions\DOUBLES(fnc,getSurfaceTexturePathNative).sqf), QFUNC(getSurfaceTexturePath)] call CBA_fnc_compileFunction;
#endif
} else {
PREP(getSurfaceTexturePath);
};
*/

0 comments on commit 6690574

Please sign in to comment.