From 35592fa0af1cf0cd5879d4395f2cd1a29e31379f Mon Sep 17 00:00:00 2001 From: lambdatiger Date: Wed, 17 Jan 2024 20:52:25 -0600 Subject: [PATCH] removed 2 argument option and removed some defaults --- addons/frag/functions/fnc_dev_sphereDraw.sqf | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/addons/frag/functions/fnc_dev_sphereDraw.sqf b/addons/frag/functions/fnc_dev_sphereDraw.sqf index c99dbcb138..31cebab110 100644 --- a/addons/frag/functions/fnc_dev_sphereDraw.sqf +++ b/addons/frag/functions/fnc_dev_sphereDraw.sqf @@ -4,8 +4,8 @@ * Add a colored sphere at a specified point. * * Arguments: - * 0: ASL position to add sphere - * 1: Color of sphere + * 0: ASL position to add sphere. + * 1: Color of sphere. (Default: Blue) * * Return Value: * None @@ -15,17 +15,11 @@ * * Public: No */ -params [ - ["_posASL", [0, 0, 0], [[]], [2,3]], - ["_color", "(1,0,0,0.5)", [""]] -]; -if (count _posASL < 3) then { - _posASL pushBack 0; - _posASL = ASLtoATL _posASL; - _posASL set [2, 0]; - _posASL = ATLtoASL _posASL; -}; +params [ + "_posASL", + ["_color", "blue", [""]] +]; if (_color select [0,1] != "(") then { _color = switch (toLowerANSI _color) do {