From 53457cfe619e5cb0b44426b02116fe99a579a901 Mon Sep 17 00:00:00 2001 From: GitHawk Date: Thu, 25 Feb 2016 10:08:20 +0100 Subject: [PATCH 1/2] Change documentation header for API fnc --- addons/refuel/functions/fnc_connectNozzleAction.sqf | 2 +- addons/refuel/functions/fnc_makeJerryCan.sqf | 2 +- addons/refuel/functions/fnc_reset.sqf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/refuel/functions/fnc_connectNozzleAction.sqf b/addons/refuel/functions/fnc_connectNozzleAction.sqf index b68983dd81..3059256cfc 100644 --- a/addons/refuel/functions/fnc_connectNozzleAction.sqf +++ b/addons/refuel/functions/fnc_connectNozzleAction.sqf @@ -60,7 +60,7 @@ while {(_closeInMax - _closeInMin) > 0.01} do { _closeInDistance = (_closeInMax + _closeInMin) / 2; //Checks (too close to center or can't attach) -if (((_startDistanceFromCenter - _closeInDistance) < 0.1) || {!([_target, _unit, _itemClassname] call FUNC(canAttach))}) exitWith { +if (((_startDistanceFromCenter - _closeInDistance) < 0.1)) exitWith { TRACE_2("no valid spot found",_closeInDistance,_startDistanceFromCenter); [localize LSTRING(Failed)] call EFUNC(common,displayTextStructured); }; diff --git a/addons/refuel/functions/fnc_makeJerryCan.sqf b/addons/refuel/functions/fnc_makeJerryCan.sqf index 23bf5395a4..7a9552cfe3 100644 --- a/addons/refuel/functions/fnc_makeJerryCan.sqf +++ b/addons/refuel/functions/fnc_makeJerryCan.sqf @@ -12,7 +12,7 @@ * Example: * [can] call ace_refuel_fnc_makeJerryCan * - * Public: No + * Public: Yes */ #include "script_component.hpp" diff --git a/addons/refuel/functions/fnc_reset.sqf b/addons/refuel/functions/fnc_reset.sqf index dee28e4301..f150055175 100644 --- a/addons/refuel/functions/fnc_reset.sqf +++ b/addons/refuel/functions/fnc_reset.sqf @@ -11,7 +11,7 @@ * Example: * [truck] call ace_refuel_fnc_reset * - * Public: No + * Public: Yes */ #include "script_component.hpp" From 5af31f6bb36ef0ab2d7eaa3b092053b4aab20ce1 Mon Sep 17 00:00:00 2001 From: GitHawk Date: Thu, 25 Feb 2016 10:11:28 +0100 Subject: [PATCH 2/2] Remove brackets --- addons/refuel/functions/fnc_connectNozzleAction.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/refuel/functions/fnc_connectNozzleAction.sqf b/addons/refuel/functions/fnc_connectNozzleAction.sqf index 3059256cfc..8a73eaf382 100644 --- a/addons/refuel/functions/fnc_connectNozzleAction.sqf +++ b/addons/refuel/functions/fnc_connectNozzleAction.sqf @@ -60,7 +60,7 @@ while {(_closeInMax - _closeInMin) > 0.01} do { _closeInDistance = (_closeInMax + _closeInMin) / 2; //Checks (too close to center or can't attach) -if (((_startDistanceFromCenter - _closeInDistance) < 0.1)) exitWith { +if ((_startDistanceFromCenter - _closeInDistance) < 0.1) exitWith { TRACE_2("no valid spot found",_closeInDistance,_startDistanceFromCenter); [localize LSTRING(Failed)] call EFUNC(common,displayTextStructured); };