From 87b1458dc0cc2bb50d3de809d7864371343b350c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Badano?= Date: Sat, 21 Mar 2015 18:09:42 -0300 Subject: [PATCH] Fix debug stuff --- addons/common/functions/fnc_cachedCall.sqf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/common/functions/fnc_cachedCall.sqf b/addons/common/functions/fnc_cachedCall.sqf index a61c24c802..03916b8600 100644 --- a/addons/common/functions/fnc_cachedCall.sqf +++ b/addons/common/functions/fnc_cachedCall.sqf @@ -1,6 +1,6 @@ /* * Author: CAA-Picard and Jaynus - * Returns the result of the function and caches it up to a given time + * Returns the result of the function and caches it up to a given time or event * * Arguments: * 0: Parameters @@ -37,7 +37,9 @@ if (((_namespace getVariable [_uid, [-99999]]) select 0) < diag_tickTime) then { [_event, { private ["_varName","_cacheList"]; // _eventName is defined on the function that calls the event - diag_log text format ["ACE: Clear cached variables on event: %1", _eventName]; + #ifdef DEBUG_MODE_FULL + diag_log text format ["ACE: Clear cached variables on event: %1", _eventName]; + #endif // Get the list of caches to clear _varName = format [QGVAR(clearCache_%1),_eventName]; _cacheList = missionNamespace getVariable [_varName, []];