From f165030e3b034a20155f33d8fddfa794d3445363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Badano?= Date: Sat, 17 Jan 2015 12:23:03 -0300 Subject: [PATCH] common: remove the support for code as string --- addons/common/functions/fnc_waitAndExecute.sqf | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/addons/common/functions/fnc_waitAndExecute.sqf b/addons/common/functions/fnc_waitAndExecute.sqf index c57073f004..6ff46b1a37 100644 --- a/addons/common/functions/fnc_waitAndExecute.sqf +++ b/addons/common/functions/fnc_waitAndExecute.sqf @@ -4,7 +4,7 @@ * Executes a code once with a given game time delay, using a PFH * * Argument: - * 0: Code to execute (Code or String) + * 0: Code to execute (Code) * 1: Parameters to run the code with (Array) * 2: Delay in seconds before executing the code (Number) * 3: Interval of time in which the execution is evaluated, 0 means every frame (Number) @@ -28,11 +28,6 @@ EXPLODE_4_PVT(_this,_func,_params,_delay,_interval); // Remove the PFH [_pfhId] call cba_fnc_removePerFrameHandler; - // Compile the function if necesary - if (typeName _func == "STRING") then { - _func = compile _func; - }; - // Execute the function _funcParams call _func; },