From d6000ae9852a105d58ea2dda065eff87b3808b07 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Tue, 17 Nov 2015 14:33:17 -0600 Subject: [PATCH] local -> private --- addons/hearing/functions/fnc_addEarPlugs.sqf | 10 +++++----- addons/hearing/functions/fnc_handleRespawn.sqf | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/hearing/functions/fnc_addEarPlugs.sqf b/addons/hearing/functions/fnc_addEarPlugs.sqf index 4301012dd1..9e6bd0cab2 100644 --- a/addons/hearing/functions/fnc_addEarPlugs.sqf +++ b/addons/hearing/functions/fnc_addEarPlugs.sqf @@ -38,11 +38,11 @@ if ((primaryWeapon _unit) == "") exitWith {}; (primaryWeaponMagazine _unit) params [["_magazine", ""]]; if (_magazine == "") exitWith {}; -local _initSpeed = getNumber (configFile >> "CfgMagazines" >> _magazine >> "initSpeed"); -local _ammo = getText (configFile >> "CfgMagazines" >> _magazine >> "ammo"); -local _count = getNumber (configFile >> "CfgMagazines" >> _magazine >> "count"); +private _initSpeed = getNumber (configFile >> "CfgMagazines" >> _magazine >> "initSpeed"); +private _ammo = getText (configFile >> "CfgMagazines" >> _magazine >> "ammo"); +private _count = getNumber (configFile >> "CfgMagazines" >> _magazine >> "count"); -local _caliber = getNumber (configFile >> "CfgAmmo" >> _ammo >> "ACE_caliber"); +private _caliber = getNumber (configFile >> "CfgAmmo" >> _ammo >> "ACE_caliber"); _caliber = call { if (_ammo isKindOf ["ShellBase", (configFile >> "CfgAmmo")]) exitWith { 80 }; if (_ammo isKindOf ["RocketBase", (configFile >> "CfgAmmo")]) exitWith { 200 }; @@ -50,7 +50,7 @@ _caliber = call { if (_ammo isKindOf ["SubmunitionBase", (configFile >> "CfgAmmo")]) exitWith { 80 }; if (_caliber <= 0) then { 6.5 } else { _caliber }; }; -local _loudness = (_caliber ^ 1.25 / 10) * (_initspeed / 1000) / 5; +private _loudness = (_caliber ^ 1.25 / 10) * (_initspeed / 1000) / 5; //If unit has a machine gun boost effective loudness 50% if (_count >= 50) then {_loudness = _loudness * 1.5}; diff --git a/addons/hearing/functions/fnc_handleRespawn.sqf b/addons/hearing/functions/fnc_handleRespawn.sqf index 08ba2946a5..527d5d6b16 100644 --- a/addons/hearing/functions/fnc_handleRespawn.sqf +++ b/addons/hearing/functions/fnc_handleRespawn.sqf @@ -20,7 +20,7 @@ TRACE_2("params",_unit,typeOf _unit); if (!local _unit) exitWith {}; //XEH should only be called on local units -local _respawn = [0] call BIS_fnc_missionRespawnType; +private _respawn = [0] call BIS_fnc_missionRespawnType; //if respawn is not Group or side: if (_respawn <= 3) then {