mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Fix trade title showing "Buying in vehicleX" when in sell mode
Tested and confirmed working as intended now.
This commit is contained in:
@@ -14,7 +14,7 @@ _weaps = _this select 0;
|
||||
_mags = _this select 1;
|
||||
_extraText = _this select 2;
|
||||
_vehTrade = false;
|
||||
if (call Z_checkCloseVehicle) then {
|
||||
if (false call Z_checkCloseVehicle) then {
|
||||
_all = _weaps + _mags + [(typeOf Z_vehicle)];
|
||||
_vehTrade = true;
|
||||
} else {
|
||||
|
||||
@@ -13,6 +13,12 @@ if(!isNull _vehicle)then{
|
||||
Z_vehicle = _vehicle;
|
||||
systemChat format[localize "STR_EPOCH_TRADE_SELECTED",typeOf Z_vehicle];
|
||||
_result = true;
|
||||
[format[localize "STR_EPOCH_TRADE_BUYING_IN", typeOf Z_vehicle]] call Z_filleTradeTitle;
|
||||
if (_this) then { // Set trade title, don't set on menu start up since gear is selected initially.
|
||||
if (Z_Selling) then {
|
||||
[format[localize "STR_EPOCH_TRADE_SELLING_FROM", typeOf Z_vehicle]] call Z_filleTradeTitle;
|
||||
} else {
|
||||
[format[localize "STR_EPOCH_TRADE_BUYING_IN", typeOf Z_vehicle]] call Z_filleTradeTitle;
|
||||
};
|
||||
};
|
||||
};
|
||||
_result
|
||||
|
||||
@@ -54,7 +54,7 @@ if(Z_Selling)then{
|
||||
case 1: {
|
||||
Z_SellingFrom = 1;
|
||||
[localize "STR_EPOCH_TRADE_BUYING_VEHICLE"] call Z_filleTradeTitle;
|
||||
_canBuyInVehicle = call Z_checkCloseVehicle;
|
||||
_canBuyInVehicle = true call Z_checkCloseVehicle;
|
||||
if(_canBuyInVehicle)then{
|
||||
[1] call Z_calculateFreeSpace;
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user