Skip to content

Commit

Permalink
Trenches - Make entrenching tool cache use hashMap (#10298)
Browse files Browse the repository at this point in the history
Save entrenching tools to hashmap instead of code
  • Loading branch information
DartRuffian authored Sep 7, 2024
1 parent e77861a commit 6bc3277
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/trenches/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ PREP_RECOMPILE_END;

#include "initSettings.inc.sqf"

GVAR(entrenchingTools) = call (uiNamespace getVariable QGVAR(entrenchingTools));
GVAR(entrenchingTools) = keys (uiNamespace getVariable QGVAR(entrenchingTools));

ADDON = true;
2 changes: 1 addition & 1 deletion addons/trenches/XEH_preStart.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ private _entrenchingTools = (QUOTE(getNumber (_x >> QQGVAR(entrenchingTool)) > 0
_entrenchingTools append (QUOTE(getNumber (_x >> QQGVAR(entrenchingTool)) > 0) configClasses (configFile >> "CfgVehicles") apply {configName _x});
TRACE_1("",_entrenchingTools);

uiNamespace setVariable [QGVAR(entrenchingTools), compileFinal str _entrenchingTools];
uiNamespace setVariable [QGVAR(entrenchingTools), compileFinal (_entrenchingTools createHashMapFromArray [])];

0 comments on commit 6bc3277

Please sign in to comment.