From dce344c85ffaf93a501d58e3133468182218789e Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Fri, 17 Apr 2015 16:51:27 -0500 Subject: [PATCH] Ignore Case --- .../functions/fnc_teleportToRallypoint.sqf | 40 +++++++++---------- .../switchunits/functions/fnc_switchBack.sqf | 2 +- tools/search_privates.py | 4 +- 3 files changed, 22 insertions(+), 24 deletions(-) diff --git a/addons/respawn/functions/fnc_teleportToRallypoint.sqf b/addons/respawn/functions/fnc_teleportToRallypoint.sqf index 82a1d68e05..dc3cc16b92 100644 --- a/addons/respawn/functions/fnc_teleportToRallypoint.sqf +++ b/addons/respawn/functions/fnc_teleportToRallypoint.sqf @@ -1,31 +1,29 @@ /* - Name: ACE_Respawn_fnc_teleportToRallypoint - - Author(s): - commy2 - - Description: - teleports a unit to a rallypoint - - Parameters: - 0: OBJECT - unit - 1: OBJECT - side - 2: BOOLEAN - teleport to base - - Returns: - VOID -*/ - + * Author: commy2 + * teleports a unit to a rallypoint + * + * Arguments: + * 0: unit + * 1: side? + * 2: teleport to base + * + * Return Value: + * Nothing + * + * Example: + * [,,] call ACE_Respawn_fnc_teleportToRallypoint; + * + * Public: No + */ #include "script_component.hpp" -private ["_unit", "_side", "_rallypoint", "_toBase"]; +PARAMS_3(_unit,_side,_rallypoint); -_unit = _this select 0; -_side = _this select 1; -_rallypoint = _this select 2; +private ["_toBase"]; // rallypoint names are defined in CfgVehicles.hpp +//IGNORE_PRIVATE_WARNING("_Base") _toBase = _rallypoint find "_Base" != -1; _rallypoint = missionNamespace getVariable [_rallypoint, objNull], diff --git a/addons/switchunits/functions/fnc_switchBack.sqf b/addons/switchunits/functions/fnc_switchBack.sqf index 9a5253cb3d..69be77dd8b 100644 --- a/addons/switchunits/functions/fnc_switchBack.sqf +++ b/addons/switchunits/functions/fnc_switchBack.sqf @@ -17,7 +17,7 @@ #include "script_component.hpp" -PARMAS_1(_originalPlayerUnit); +PARAMS_1(_originalPlayerUnit); [_originalPlayerUnit] joinSilent GVAR(OriginalGroup); diff --git a/tools/search_privates.py b/tools/search_privates.py index 56626c5bfd..6e1430a8ca 100644 --- a/tools/search_privates.py +++ b/tools/search_privates.py @@ -73,8 +73,8 @@ def check_privates(filepath): missing = [] for s in priv_use: - if s not in priv_declared: - if s not in missing: + if s.lower() not in map(str.lower,priv_declared): + if s.lower() not in map(str.lower,missing): missing.append(s) if len(missing) > 0: