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:
parent
41f8628917
commit
91b7c7de61
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user