Update private tags

This commit is contained in:
oiad
2019-01-05 09:32:12 +13:00
parent 44229f35e3
commit 387f77b9da
2 changed files with 9 additions and 9 deletions

View File

@@ -4,13 +4,14 @@
return all player magazines with ammo count
*/
private ["_dialog","_created","_magazineArray","_item","_val","_max"];
private ["_control","_created","_dialog","_i","_item","_magazineArray","_max","_val"];
disableSerialization;
_dialog = findDisplay 106;
_created = false;
if ( isNull _dialog ) then {
if (isNull _dialog) then {
//Load Minimal gearMenu
createGearDialog [player, "RscDisplayGearMinimal"];
_dialog = findDisplay 106;
@@ -19,8 +20,7 @@ if ( isNull _dialog ) then {
_magazineArray = [];
for "_i" from 109 to 120 do
{
for "_i" from 109 to 120 do {
_control = _dialog displayCtrl _i;
_item = gearSlotData _control;
_val = gearSlotAmmoCount _control;
@@ -34,8 +34,7 @@ for "_i" from 109 to 120 do
};
};
for "_i" from 122 to 129 do
{
for "_i" from 122 to 129 do {
_control = _dialog displayCtrl _i;
_item = gearSlotData _control;
_val = gearSlotAmmoCount _control;
@@ -49,7 +48,7 @@ for "_i" from 122 to 129 do
};
};
if ( _created ) then {
if (_created) then {
closeDialog 0;
};

View File

@@ -4,7 +4,8 @@
return all player magazines with ammo count
Modified to save backpack magazine count by icomrade - Base for fix by Ziellos2k
*/
private ["_control","_item","_val","_max","_count","_magazineArray","_dialog"];
private ["_control","_count","_dialog","_i","_item","_magazineArray","_max","_val"];
disableUserInput true;
disableUserInput true;
disableSerialization;
@@ -70,4 +71,4 @@ if ((typeOf (unitBackPack player)) != "") then {
(findDisplay 106) closeDisplay 0;
if (gear_done) then {sleep 0.001;};
_magazineArray;
_magazineArray