Dont show you have the item if it's not nearby (#1937)

* Dont show you have the item if it's not nearby

This was showing you had a vehicle in the trader menu even if it was
over the other side of the map, I think this works better only showing
it if it's within the trader zone.

* Forgot missing operator
This commit is contained in:
oiad
2017-04-11 12:03:37 +12:00
committed by ebayShopper
parent c39fc86972
commit bf6a980d4c

View File

@@ -12,7 +12,7 @@ _typeOf = typeOf (unitBackPack player);
_type = _x select 1; _type = _x select 1;
_count = 0; _count = 0;
if (_type in DZE_tradeVehicle && {_name == typeOf DZE_myVehicle}) then { if (_type in DZE_tradeVehicle && {_name == typeOf DZE_myVehicle} && {player distance DZE_myVehicle <= Z_VehicleDistance}) then {
_count = 1; _count = 1;
}; };
if (_type == "trade_items") then { if (_type == "trade_items") then {