1
0
mirror of https://github.com/acemod/ACE3.git synced 2024-08-30 18:23:18 +00:00

Change the varname of the weapon data cache to be consistent with other modules

This commit is contained in:
esteldunedain 2016-01-20 22:22:53 -03:00
parent 41f8628917
commit 91b7c7de61
2 changed files with 4 additions and 4 deletions
addons/overheating

@ -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),

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