Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General - Fix some undefined variables #10335

Merged
merged 3 commits into from
Sep 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions addons/ai/functions/fnc_drawCuratorGarrisonPathing.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

if (isNull findDisplay 312) exitWith {
//IGNORE_PRIVATE_WARNING ["_thisEventHandler"];
removeMissionEventHandler ["Draw3D", _thisEventHandler];
};

Expand Down
1 change: 1 addition & 0 deletions addons/arsenal/functions/fnc_message.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ if (!isNil "_handle") then {
};

_handle = [_display, _messageBoxCtrl, time + 5, _message, FADE_DELAY] spawn {
//IGNORE_PRIVATE_WARNING ["_thisScript"];
disableSerialization;

params ["_display", "_control", "_timer", "_message", "_delay"];
Expand Down
1 change: 1 addition & 0 deletions addons/arsenal/functions/fnc_onSelChangedLeft.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ private _fnc_clearCurrentWeaponMags = {

// If nothing was selected, remove all magazines from the current weapon
if (_item != "") then {
//IGNORE_PRIVATE_WARNING ["_compatibleMags"];
_compatibleMagsCurrentWeapon = _compatibleMagsCurrentWeapon - _compatibleMags;
};

Expand Down
1 change: 1 addition & 0 deletions addons/arsenal/functions/fnc_sortPanel.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ private _for = if (_right) then {
for "_i" from 0 to (lbSize _panel) - 1
};

//IGNORE_PRIVATE_WARNING ["_i"];
_for do {
// Get item
_item = if (_right) then {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ params ["_targetDistance", "_targetHeight", "_muzzleVelocity", ["_highArc", true
//MK6_82mm_AIR_FRICTION == -0.0001

if (_airFriction != 0) then {
_muzzleVelocity = [_muzzleVelocity, _temperature, _atmosphericDensity] call FUNC(calculateMuzzleVelocity);
_muzzleVelocity = [_muzzleVelocity, _temperature, _airDensity] call FUNC(calculateMuzzleVelocity);
};
private _maxResults = [_muzzleVelocity, _airFriction] call FUNC(calculateMaxAngle);

Expand Down
2 changes: 1 addition & 1 deletion addons/common/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ if (isServer) then {

[QGVAR(unlockVehicle), {
_this lock (_this getVariable [QGVAR(lockStatus), locked _this]);
if ([] isNotEqualTo getArray (configOf _target >> "assembleInfo" >> "dissasembleTo")) then {
if ([] isNotEqualTo getArray (configOf _this >> "assembleInfo" >> "dissasembleTo")) then {
[_this, "disableWeaponAssembly", QGVAR(lockVehicle), false] call FUNC(statusEffect_set);
};
}] call CBA_fnc_addEventHandler;
Expand Down
4 changes: 2 additions & 2 deletions addons/common/functions/fnc_cbaSettings.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ for "_index" from 0 to (_countOptions - 1) do {
if (isNil (configName _optionEntry)) then {
[_optionEntry] call FUNC(cbaSettings_loadFromConfig);
} else {
WARNING_1("Setting [%1] - Already defined from somewhere else??",_varName);
WARNING_1("Setting [%1] - Already defined from somewhere else??",configName _optionEntry);
};
#ifdef DEBUG_MODE_FULL
} else {
Expand All @@ -104,7 +104,7 @@ for "_index" from 0 to (_countOptions - 1) do {
private _optionEntry = _missionSettingsConfig select _index;
private _settingName = configName _optionEntry;
if ((toLowerANSI _settingName) in GVAR(cbaSettings_forcedSettings)) then {
WARNING_1("Setting [%1] - Already Forced - ignoring missionConfig",_varName);
WARNING_1("Setting [%1] - Already Forced - ignoring missionConfig",configName _optionEntry);
} else {
if ((isNil _settingName) && {(getNumber (_settingsConfig >> _settingName >> "movedToSQF")) == 0}) then {
// New setting, that was first defined in missionConfigFile
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_checkFiles.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ if (isMultiplayer) then {
publicVariable QGVAR(serverAddons);
publicVariable QGVAR(serverSource);
} else {
GVAR(clientVersion) = _version;
GVAR(clientVersion) = _mainVersion;
GVAR(clientAddons) = _addons;

private _fnc_check = {
Expand Down
1 change: 1 addition & 0 deletions addons/common/functions/fnc_checkPBOs.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ if (!_checkAll) exitWith {};
if (!isServer) then {
["ace_versioning_clientCheckDone", {
// Don't let this event get triggered again
//IGNORE_PRIVATE_WARNING ["_thisType", "_thisId", "_thisArgs"];
[_thisType, _thisId] call CBA_fnc_removeEventHandler;

params ["_clientErrors"];
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_checkVersionNumber.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private _fnc_check = {

// Wait for server to send the servers files and version numbers
if (isNil "ACE_Version_ServerVersions") then {
ACE_Version_ServerVersions addPublicVariableEventHandler _fnc_check;
"ACE_Version_ServerVersions" addPublicVariableEventHandler _fnc_check;
} else {
call _fnc_check;
};
1 change: 1 addition & 0 deletions addons/common/functions/fnc_getInPosition.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ private _enemiesInVehicle = false; //Possible Side Restriction
if (side _unit getFriend side _x < 0.6) exitWith {_enemiesInVehicle = true};
} forEach crew _vehicle;

//IGNORE_PRIVATE_WARNING ["_unit", "_isInside", "_vehicle", "_turret", "_index", "_fnc_getInEH", "_position"];
switch (_position) do {
case "driver" : {
if (CANGETINDRIVER) then {
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_moduleLSDVehicles.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (isNil QGVAR(LSD_Vehicles)) then {
};

{
_hSCount = count (getArray (configOf _x >> "hiddenSelections"));
private _hSCount = count (getArray (configOf _x >> "hiddenSelections"));
if (_hSCount > 0) then {
GVAR(LSD_Vehicles) pushBack [_x, _hSCount];
};
Expand Down
4 changes: 2 additions & 2 deletions addons/common/functions/fnc_setSetting.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ if (!_broadcastChanges) exitWith {
ERROR_1("Setting [%1] - SetSetting no longer supports non-global settings",_name);
};

if ([_settingName, "mission"] call CBA_settings_fnc_isForced) then {
WARNING_1("Setting [%1] - Already mission forced - Ignoring",_settingName);
if ([_name, "mission"] call CBA_settings_fnc_isForced) then {
WARNING_1("Setting [%1] - Already mission forced - Ignoring",_name);
};

[QGVAR(setSetting), [_name, _value], (format [QGVAR(setSetting_%1), _name])] call CBA_fnc_globalEventJIP;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ if (_playProgressBar) exitWith {

[_weaponPlatform, _newStaticWeapon] call SPE_Weapons_Static_fnc_alter_height;
}, {}, LSUBLSTRING(alteringHeight), {
//IGNORE_PRIVATE_WARNING ["_player"];
(_this select 0) params ["_weaponPlatform"];

_player distance _weaponPlatform <= 4 && {[_weaponPlatform, true] call SPE_Weapons_Static_fnc_can_alter_height}
Expand Down
2 changes: 1 addition & 1 deletion addons/cookoff/functions/fnc_cookOffServer.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,4 @@ if (_delayBetweenSmokeAndFire) then {
}, [_vehicle, _selections, _ammoDetonationChance, _detonateAfterCookoff, _source, _instigator, _fireSelection, _canRing, _canJet, _smokeJipID, _fireJipID], _delay] call CBA_fnc_waitAndExecute;

// API
[QGVAR(cookoff), [_vehicle, _intensity, _instigator, _smokeDelayEnabled, _ammoDetonationChance, _detonateAfterCookoff, _fireSelection, _canRing, _maxIntensity, _canJet]] call CBA_fnc_globalEvent;
[QGVAR(cookoff), [_vehicle, _intensity, _instigator, _delayBetweenSmokeAndFire, _ammoDetonationChance, _detonateAfterCookoff, _fireSelection, _canRing, _maxIntensity, _canJet]] call CBA_fnc_globalEvent;
1 change: 1 addition & 0 deletions addons/csw/functions/fnc_getUnloadActions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ private _statement = {
TIME_PROGRESSBAR(_timeToUnload),
[_target, _turretPath, _player, _carryMag, _vehMag],
{
//IGNORE_PRIVATE_WARNING ["_player"];
(_this select 0) params ["_target", "_turretPath", "", "_carryMag", "_vehMag"];
TRACE_5("unload progressBar finish",_target,_turretPath,_carryMag,_vehMag,_player);
[QGVAR(removeTurretMag), [_target, _turretPath, _carryMag, _vehMag, _player]] call CBA_fnc_globalEvent;
Expand Down
2 changes: 1 addition & 1 deletion addons/csw/functions/fnc_reload_loadMagazine.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private _onFinish = {
};
} forEach (if (_magSource isKindOf "CAManBase") then {magazinesAmmo _magSource} else {magazinesAmmoCargo _magSource});

if (_bestAmmoToSend == -1) exitWith {ERROR_2("No ammo [%1 - %2]?",_xMag,_bestAmmoToSend);};
if (_bestAmmoToSend == -1) exitWith {ERROR_2("No ammo [%1 - %2]?",_carryMag,_bestAmmoToSend);};
[_magSource, _carryMag, _bestAmmoToSend] call EFUNC(common,removeSpecificMagazine);
if (_bestAmmoToSend == 0) exitWith {};

Expand Down
4 changes: 2 additions & 2 deletions addons/dagr/functions/fnc_outputWP.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ GVAR(outputPFH) = [{
private _xGrid2 = floor (DAGR_WP_INFO / 10000);
private _yGrid2 = DAGR_WP_INFO - _xGrid2 * 10000;

_xCoord2 = switch true do {
private _xCoord2 = switch true do {
case (_xGrid2 >= 1000): { "" + str(_xGrid2) };
case (_xGrid2 >= 100): { "0" + str(_xGrid2) };
case (_xGrid2 >= 10): { "00" + str(_xGrid2) };
default { "000" + str(_xGrid2) };
};

_yCoord2 = switch true do {
private _yCoord2 = switch true do {
case (_yGrid2 >= 1000): { "" + str(_yGrid2) };
case (_yGrid2 >= 100): { "0" + str(_yGrid2) };
case (_yGrid2 >= 10): { "00" + str(_yGrid2) };
Expand Down
2 changes: 1 addition & 1 deletion addons/disarming/functions/fnc_openDisarmDialog.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ params ["_caller", "_target"];

//Sanity Checks
if (_caller != ACE_player) exitWith {ERROR("Player isn't caller?");};
if !([_player, _target] call FUNC(canPlayerDisarmUnit)) exitWith {ERROR("Can't Disarm Unit");};
if !([_caller, _target] call FUNC(canPlayerDisarmUnit)) exitWith {ERROR("Can't Disarm Unit");};
if (dialog) then {ERROR("Dialog open when trying to open disarm dialog"); closeDialog 0;};

disableSerialization;
Expand Down
1 change: 1 addition & 0 deletions addons/dogtags/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ if (hasInterface) then {
if !(GETEGVAR(medical,enabled,false)) exitWith {};

if (hasInterface) then {
//IGNORE_PRIVATE_WARNING ["_target", "_player"];
private _checkTagAction = [
"ACE_CheckDogtag",
format ["%1: %2", LLSTRING(itemName), LLSTRING(checkDogtag)],
Expand Down
1 change: 1 addition & 0 deletions addons/dogtags/functions/fnc_addDogtagActions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
params ["_player"];

private _fnc_getActions = {
//IGNORE_PRIVATE_WARNING ["_player"];
private _actions = [];
private _cfgWeapons = configFile >> "CfgWeapons";

Expand Down
1 change: 1 addition & 0 deletions addons/dragging/functions/fnc_handleAnimChanged.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

params ["_unit", "_anim"];
//IGNORE_PRIVATE_WARNING ["_thisArgs", "_thisID"];
_thisArgs params ["_realUnit"];
TRACE_4("params",_unit,_anim,_realUnit,_thisID);

Expand Down
1 change: 1 addition & 0 deletions addons/dragging/functions/fnc_setCarryable.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ GVAR(initializedClasses_carry) = _initializedClasses;

private _icon = [QPATHTOF(UI\icons\box_carry.paa), QPATHTOF(UI\icons\person_carry.paa)] select (_object isKindOf "CAManBase");

//IGNORE_PRIVATE_WARNING ["_target", "_player"];
private _carryAction = [
QGVAR(carry),
LLSTRING(Carry),
Expand Down
1 change: 1 addition & 0 deletions addons/dragging/functions/fnc_setDraggable.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ GVAR(initializedClasses) = _initializedClasses;

private _icon = [QPATHTOF(UI\icons\box_drag.paa), QPATHTOF(UI\icons\person_drag.paa)] select (_object isKindOf "CAManBase");

//IGNORE_PRIVATE_WARNING ["_target", "_player"];
private _dragAction = [
QGVAR(drag),
LLSTRING(Drag),
Expand Down
1 change: 1 addition & 0 deletions addons/explosives/functions/fnc_addDetonateActions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ if (_detonator != "ACE_DeadManSwitch") then {
format [localize LSTRING(connectInventoryExplosiveToDeadman), _name],
_picture,
{
//IGNORE_PRIVATE_WARNING ["_player"];
params ["_player", "", "_mag"];
TRACE_2("set new",_player,_mag);
_player setVariable [QGVAR(deadmanInvExplosive), _mag, true];
Expand Down
2 changes: 1 addition & 1 deletion addons/explosives/functions/fnc_getPlacedExplosives.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* Public: Yes
*/
// IGNORE_PRIVATE_WARNING(_allExplosives,_deadmanExplosives);
//IGNORE_PRIVATE_WARNING ["_allExplosives", "_deadmanExplosives"];

params ["_unit"];
TRACE_1("params",_unit);
Expand Down
2 changes: 1 addition & 1 deletion addons/explosives/functions/fnc_hasPlacedExplosives.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
*
* Public: Yes
*/
// IGNORE_PRIVATE_WARNING(_hasPlacedExplosives);
//IGNORE_PRIVATE_WARNING ["getPlacedExplosives"];

(count (_this call FUNC(getPlacedExplosives)) > 0)
1 change: 1 addition & 0 deletions addons/field_rations/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ if !(hasInterface) exitWith {};
[false, false, false, false, true]
] call EFUNC(interact_menu,createAction);

//IGNORE_PRIVATE_WARNING ["_player", "_target"];
private _subActions = [
[
QGVAR(checkWater),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
params ["_player"];

private _fnc_getActions = {
//IGNORE_PRIVATE_WARNING ["_player"];
TRACE_1("Creating consumable item actions",_player);

private _actions = [];
Expand Down
1 change: 1 addition & 0 deletions addons/fortify/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ GVAR(objectRotationZ) = 0;
private _text = [format ["Remove Object +$%1", _cost], "Remove Object"] select (_budget == -1);

// Remove object action
//IGNORE_PRIVATE_WARNING ["_player"];
private _removeAction = [
QGVAR(removeObject),
_text,
Expand Down
4 changes: 2 additions & 2 deletions addons/goggles/functions/fnc_applyDustEffect.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ GVAR(DustHandler) = [{

private _amount = 1 - (GETDUSTT(DAMOUNT) * 0.125);

if !(_unit getVariable ["ACE_EyesDamaged", false]) then {
if !(ACE_player getVariable ["ACE_EyesDamaged", false]) then {
GVAR(PostProcessEyes) ppEffectAdjust [1, 1, 0, [0, 0, 0, 0], [_amount, _amount, _amount, _amount], [1, 1, 1, 0]];
GVAR(PostProcessEyes) ppEffectCommit 0.5;
};
Expand All @@ -68,7 +68,7 @@ GVAR(DustHandler) = [{

GVAR(PostProcessEyes) ppEffectAdjust [1, 1, 0, [0, 0, 0, 0], [1, 1, 1, 1], [1, 1, 1, 0]];
GVAR(PostProcessEyes) ppEffectCommit 2;
[QGVAR(effect), [_unit, "dust"]] call CBA_fnc_localEvent;
[QGVAR(effect), [ACE_player, "dust"]] call CBA_fnc_localEvent;

[{
if (GVAR(DustHandler) == -1) then {
Expand Down
2 changes: 1 addition & 1 deletion addons/grenades/functions/fnc_flashbangExplosionEH.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ if (["ace_hearing"] call EFUNC(common,isModLoaded) && {_strength > 0} && {EGVAR(
};

// Add ace_medical pain effect
if (GETEGVAR(medical,enabled,false) && {_strength > 0.1} && {isDamageAllowed _unit} && {_unit getVariable [QEGVAR(medical,allowDamage), true]}) then {
if (GETEGVAR(medical,enabled,false) && {_strength > 0.1} && {isDamageAllowed ACE_player} && {ACE_player getVariable [QEGVAR(medical,allowDamage), true]}) then {
[ACE_player, _strength / 2] call EFUNC(medical,adjustPainLevel);
};

Expand Down
2 changes: 1 addition & 1 deletion addons/grenades/functions/fnc_incendiary.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ if (isServer) then {
{EGVAR(cookoff,ammoCookoffDuration) != 0} &&
{_x getVariable [QEGVAR(cookoff,enableAmmoCookoff), true]}
) then {
[QEGVAR(cookOff,cookOffBoxServer), _box] call CBA_fnc_serverEvent;
[QEGVAR(cookOff,cookOffBoxServer), _x] call CBA_fnc_serverEvent;
} else {
_x setDamage 1;
};
Expand Down
1 change: 1 addition & 0 deletions addons/hitreactions/functions/fnc_getRandomAnimation.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ if (_weapon == "") exitWith {

if (_weapon == primaryWeapon _unit) exitWith {
if (_unit call EFUNC(common,isPlayer)) then {
//IGNORE_PRIVATE_WARNING ["_velocity"]; // from upper scope
private _isRunning = _velocity > 4;

[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ if (_objectType isKindOf "CAManBase") then {

TRACE_1("Building ACE_SelfActions",_objectType);
// Create a master action to base on self action
//IGNORE_PRIVATE_WARNING ["_target"];
private _actions = [
[
[
Expand Down
3 changes: 2 additions & 1 deletion addons/interact_menu/functions/fnc_createAction.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
* Public: Yes
*/

// IGNORE_PRIVATE_WARNING(_actionName,_displayName,_icon,_statement,_condition,_insertChildren,_customParams,_position,_distance,_params,_modifierFunction);
//IGNORE_PRIVATE_WARNING ["_actionName", "_displayName", "_icon", "_statement", "_condition", "_insertChildren"];
//IGNORE_PRIVATE_WARNING ["_customParams", "_position", "_distance", "_params", "_modifierFunction"];

if (!hasInterface) exitWith { [] };
params [
Expand Down
1 change: 1 addition & 0 deletions addons/interaction/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ GVAR(isOpeningDoor) = false;
} forEach ["loadout", "weapon"];

// add "Take _weapon_" action to dropped weapons
//IGNORE_PRIVATE_WARNING ["_target", "_player"];
private _action = [
// action display name will be overwritten in modifier function
QGVAR(takeWeapon), "take", "\A3\ui_f\data\igui\cfg\actions\take_ca.paa",
Expand Down
1 change: 1 addition & 0 deletions addons/interaction/functions/fnc_addPassengersActions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ private _icon = "";
_icon = QPATHTOEF(captives,UI\handcuff_ca.paa);
};

//IGNORE_PRIVATE_WARNING ["_target"];
_actions pushBack [
[
str _unit,
Expand Down
1 change: 1 addition & 0 deletions addons/interaction/functions/fnc_addSquadChildren.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ private _fnc_color = {

private _units = (units group _player) - [_player];

//IGNORE_PRIVATE_WARNING ["_target"];
private _subActions = [];
_subActions pushBack (["drop", localize "str_a3_endgame_notifications_title_drop", "\a3\ui_f\data\igui\cfg\actions\ico_off_ca.paa",
{[_target] joinSilent grpNull}, {true}] call EFUNC(interact_menu,createAction));
Expand Down
1 change: 1 addition & 0 deletions addons/interaction/functions/fnc_doRemoteControl.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Public: No
*/
//IGNORE_PRIVATE_WARNING ["_target"];

private _units = curatorSelected select 0;
private _index = _units findIf {
Expand Down
2 changes: 1 addition & 1 deletion addons/interaction/functions/fnc_getVehiclePos.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* Public: No
*/
// IGNORE_PRIVATE_WARNING(_target);
//IGNORE_PRIVATE_WARNING ["_target"];

private _bb = boundingBoxReal _target;
(_bb select 0) params ["_bbX", "_bbY", "_bbZ"];
Expand Down
2 changes: 1 addition & 1 deletion addons/interaction/functions/fnc_getWeaponPos.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* Public: No
*/
// IGNORE_PRIVATE_WARNING(_target);
//IGNORE_PRIVATE_WARNING ["_target"];

private _weaponDir = _target weaponDirection currentWeapon _target;
private _refSystem = _weaponDir call EFUNC(common,createOrthonormalReference);
Expand Down
2 changes: 1 addition & 1 deletion addons/inventory/functions/fnc_forceItemListUpdate.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private _config = configNull;

for "_i" from (lbSize _itemList) to 0 step -1 do {
johnb432 marked this conversation as resolved.
Show resolved Hide resolved
// All items have their classnames in lbData, except backpacks
_className = _itemList lbData _i;
private _className = _itemList lbData _i;

_config = if (_className != "") then {
_itemKeyCache get _className
Expand Down
Loading