Ignore Case

This commit is contained in:
PabstMirror 2015-04-17 16:51:27 -05:00
parent 00f26144ec
commit dce344c85f
3 changed files with 22 additions and 24 deletions

View File

@ -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 <OBJECT>
* 1: side? <OBJECT>
* 2: teleport to base <BOOLEAN>
*
* 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],

View File

@ -17,7 +17,7 @@
#include "script_component.hpp"
PARMAS_1(_originalPlayerUnit);
PARAMS_1(_originalPlayerUnit);
[_originalPlayerUnit] joinSilent GVAR(OriginalGroup);

View File

@ -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: