From 91b7c7de614effc1f023e6ab53d8773eab4c7e23 Mon Sep 17 00:00:00 2001 From: esteldunedain Date: Wed, 20 Jan 2016 22:22:53 -0300 Subject: [PATCH] Change the varname of the weapon data cache to be consistent with other modules --- addons/overheating/XEH_postInit.sqf | 4 ++-- addons/overheating/functions/fnc_getWeaponData.sqf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/overheating/XEH_postInit.sqf b/addons/overheating/XEH_postInit.sqf index 236345d35d..76cdb090bb 100644 --- a/addons/overheating/XEH_postInit.sqf +++ b/addons/overheating/XEH_postInit.sqf @@ -13,8 +13,8 @@ if (isServer) then { if !(hasInterface) exitWith {}; -GVAR(weaponInfoCache) = createLocation ["ACE_HashLocation", [-10000,-10000,-10000], 0, 0]; -GVAR(weaponInfoCache) setText QGVAR(weaponInfoCache); +GVAR(cacheWeaponData) = createLocation ["ACE_HashLocation", [-10000,-10000,-10000], 0, 0]; +GVAR(cacheWeaponData) setText QGVAR(cacheWeaponData); // Add keybinds ["ACE3 Weapons", QGVAR(unjamWeapon), localize LSTRING(UnjamWeapon), diff --git a/addons/overheating/functions/fnc_getWeaponData.sqf b/addons/overheating/functions/fnc_getWeaponData.sqf index f83cb682c0..e7da350e91 100644 --- a/addons/overheating/functions/fnc_getWeaponData.sqf +++ b/addons/overheating/functions/fnc_getWeaponData.sqf @@ -15,7 +15,7 @@ #include "script_component.hpp" // Look in the cache first -private _weaponData = GVAR(weaponInfoCache) getVariable _weapon; +private _weaponData = GVAR(cacheWeaponData) getVariable _weapon; if (!isNil "_weaponData") exitWith {_weaponData}; // Search the config @@ -63,6 +63,6 @@ if (isArray _property) then { // Cache the values _weaponData = [_dispersion, _slowdownFactor, _jamChance]; TRACE_2("building cache",_weapon,_weaponData); -GVAR(weaponInfoCache) setVariable [_weapon, _weaponData]; +GVAR(cacheWeaponData) setVariable [_weapon, _weaponData]; _weaponData