From a4ea5fb72425e8878316755b93ed5d40a432c5ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Badano?= Date: Fri, 13 Mar 2015 01:01:00 -0300 Subject: [PATCH] Cache the call to determineMapLight --- addons/mapfx/functions/fnc_updateMapFx.sqf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/mapfx/functions/fnc_updateMapFx.sqf b/addons/mapfx/functions/fnc_updateMapFx.sqf index 9b4b1ab7df..e2f1c07f00 100644 --- a/addons/mapfx/functions/fnc_updateMapFx.sqf +++ b/addons/mapfx/functions/fnc_updateMapFx.sqf @@ -1,8 +1,7 @@ #include "script_component.hpp" // Calculate the light -//_data = [[], FUNC(determineMapLight), missionNamespace, QGVAR(mapLight), 0.1] call EFUNC(common,cachedCall); -_data = call FUNC(determineMapLight); +_data = [[], FUNC(determineMapLight), missionNamespace, QGVAR(mapLight), 0.1] call EFUNC(common,cachedCall); diag_log _data; _darkMap = _data select 0; _color = _data select 1;