From 8e2d489312dda6fd2403fbd79bd388f7a2c8d1fc Mon Sep 17 00:00:00 2001 From: esteldunedain Date: Mon, 18 Jan 2016 19:53:48 -0300 Subject: [PATCH] Add warnings to deprecated functions --- addons/common/functions/fnc_getCaptivityStatus.sqf | 1 + addons/common/functions/fnc_getForceWalkStatus.sqf | 1 + addons/common/functions/fnc_setCaptivityStatus.sqf | 1 + addons/common/functions/fnc_setForceWalkStatus.sqf | 1 + 4 files changed, 4 insertions(+) diff --git a/addons/common/functions/fnc_getCaptivityStatus.sqf b/addons/common/functions/fnc_getCaptivityStatus.sqf index 3eca2ce831..8c899041d0 100644 --- a/addons/common/functions/fnc_getCaptivityStatus.sqf +++ b/addons/common/functions/fnc_getCaptivityStatus.sqf @@ -15,5 +15,6 @@ params ["_unit"]; //Now just a wrapper for FUNC(statusEffect_get) +ACE_DEPRECATED("ace_common_fnc_getCaptivityStatus","3.6.0","ace_common_fnc_statusEffect_get"); ([player, "setCaptive"] call FUNC(statusEffect_get)) select 1 diff --git a/addons/common/functions/fnc_getForceWalkStatus.sqf b/addons/common/functions/fnc_getForceWalkStatus.sqf index 4c48b64030..6a8b25c0b9 100644 --- a/addons/common/functions/fnc_getForceWalkStatus.sqf +++ b/addons/common/functions/fnc_getForceWalkStatus.sqf @@ -18,5 +18,6 @@ params ["_unit"]; //Now just a wrapper for FUNC(statusEffect_get) +ACE_DEPRECATED("ace_common_fnc_getForceWalkStatus","3.6.0","ace_common_fnc_statusEffect_get"); ([player, "forceWalk"] call FUNC(statusEffect_get)) select 1 diff --git a/addons/common/functions/fnc_setCaptivityStatus.sqf b/addons/common/functions/fnc_setCaptivityStatus.sqf index 79b2a654a9..5294a631f7 100644 --- a/addons/common/functions/fnc_setCaptivityStatus.sqf +++ b/addons/common/functions/fnc_setCaptivityStatus.sqf @@ -17,5 +17,6 @@ params ["_unit", "_reason", "_status"]; //Now just a wrapper for FUNC(statusEffect_set) +ACE_DEPRECATED("ace_common_fnc_setCaptivityStatus","3.6.0","ace_common_fnc_statusEffect_set"); [_unit, "setCaptive", _reason, _status] call FUNC(statusEffect_set); diff --git a/addons/common/functions/fnc_setForceWalkStatus.sqf b/addons/common/functions/fnc_setForceWalkStatus.sqf index 8bd3250759..dc1e7d0900 100644 --- a/addons/common/functions/fnc_setForceWalkStatus.sqf +++ b/addons/common/functions/fnc_setForceWalkStatus.sqf @@ -21,5 +21,6 @@ params ["_unit", "_reason", "_status"]; //Now just a wrapper for FUNC(statusEffect_set) +ACE_DEPRECATED("ace_common_fnc_setForceWalkStatus","3.6.0","ace_common_fnc_statusEffect_set"); [_unit, "forceWalk", _reason, _status] call FUNC(statusEffect_set);