mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user