Remove unused variable from #1770

_inventoryMoney was unused @oiad
This commit is contained in:
ebaydayz
2016-10-02 14:11:20 -04:00
parent c4f861630d
commit 91f168011c
3 changed files with 6 additions and 9 deletions

View File

@@ -24,12 +24,11 @@ Z_ChangeOverflow = false;
if (_combine) then {
_trade_total = 0;
_total_currency = 0;
_inventoryMoney = [];
_combineOk = 1;
{
_part = (configFile >> "CfgMagazines" >> _x);
_worth = (_part >> "worth");
if isNumber (_worth) then {
_part = configFile >> "CfgMagazines" >> _x;
_worth = (_part >> "worth");
if (isNumber _worth) then {
_combineOk = [player,_part,1] call BIS_fnc_invRemove;
_total_currency = _total_currency + getNumber(_worth);
} else {

View File

@@ -36,14 +36,13 @@ if (_canAfford) then {
// total currency
_total_currency = 0;
{
_part = (configFile >> "CfgMagazines" >> _x);
_worth = (_part >> "worth");
if isNumber (_worth) then {
_part = configFile >> "CfgMagazines" >> _x;
_worth = (_part >> "worth");
if (isNumber _worth) then {
if (([player,_part,1] call BIS_fnc_invRemove) == 1) then {
_total_currency = _total_currency + getNumber(_worth);
};
};
} count (magazines player);
//diag_log format["DEBUG TRADER INPUT CURRENCY TOTAL: %1", _total_currency];

View File

@@ -2737,7 +2737,6 @@
<Spanish>M9 Silenciada</Spanish>
<French>M9 Silencieux</French>
<Czech>M9 s tlumičem</Czech>
<German>M9 SD</German>
</Key>
<Key ID="STR_CRAFT_DESC_M9SD">
<English>Blueprint to create a M9SD. Required - 1 M9, 1 Attachment_Silencer. - ToolBox</English>