From d82cee71480ca6e0e40cff3c4d8f07f7b72d6648 Mon Sep 17 00:00:00 2001 From: nomisum Date: Sun, 1 Nov 2015 21:13:26 +0100 Subject: [PATCH] finally a fix for defense box fuckup --- spawn/gui/calculateVehicleCall.sqf | 10 ++++++++-- spawn/gui/orderRussianVehicle.sqf | 4 +--- spawn/gui/orderUSVehicle.sqf | 1 - 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/spawn/gui/calculateVehicleCall.sqf b/spawn/gui/calculateVehicleCall.sqf index 2896e4f3..3bf90798 100644 --- a/spawn/gui/calculateVehicleCall.sqf +++ b/spawn/gui/calculateVehicleCall.sqf @@ -18,7 +18,10 @@ calculateRussianVehicleCall = { _countLeft, _price, _priceDisplay, - _eta + _eta, + _source_array select 6, + _source_array select 7, + _source_array select 8 ]; //if (DEBUG) then { diag_log format ["calculateVehicleCall: %1",_target_array]; }; @@ -47,7 +50,10 @@ calculateUSVehicleCall = { _countLeft, _price, _priceDisplay, - _eta + _eta, + _source_array select 6, + _source_array select 7, + _source_array select 8 ]; //if (DEBUG) then { diag_log format ["calculateVehicleCall: %1",_target_array]; }; diff --git a/spawn/gui/orderRussianVehicle.sqf b/spawn/gui/orderRussianVehicle.sqf index 59ad4001..eb3c4e6e 100644 --- a/spawn/gui/orderRussianVehicle.sqf +++ b/spawn/gui/orderRussianVehicle.sqf @@ -7,7 +7,6 @@ _tempRussian_4 = (russianSupplies select 4); _tempRussian_5 = (russianSupplies select 5); _tempRussian_6 = (russianSupplies select 6); _tempRussian_7 = (russianSupplies select 7); -_tempRussian_8 = (russianSupplies select 8); _oldMoney = (russianSupplies select 0); _price = [_idc] call russian_IDC_to_price; @@ -93,8 +92,7 @@ _tempSupplies = _tempRussian_4, _tempRussian_5, _tempRussian_6, - _tempRussian_7, - _tempRussian_8 + _tempRussian_7 ]; [_tempSupplies,false,0,_vehicleOrdered,_vehicleExtras,_vehicleCalls,_vehicleEta] call refreshRussianUI; diff --git a/spawn/gui/orderUSVehicle.sqf b/spawn/gui/orderUSVehicle.sqf index 48b78018..104f5c4b 100644 --- a/spawn/gui/orderUSVehicle.sqf +++ b/spawn/gui/orderUSVehicle.sqf @@ -7,7 +7,6 @@ _tempUS_4 = (USSupplies select 4); _tempUS_5 = (USSupplies select 5); _tempUS_6 = (USSupplies select 6); _tempUS_7 = (USSupplies select 7); -_tempUS_8 = (USSupplies select 8); _oldMoney = (USSupplies select 0); _price = [_idc] call US_IDC_to_price;