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 authored and ebayShopper committed 2017-04-10 20:03:37 -04:00
1 parent c39fc86972
commit bf6a980d4c
1 file changed
+1 -1
@@ -12,7 +12,7 @@ _typeOf = typeOf (unitBackPack player);
_type = _x select 1;
_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;
};
if (_type == "trade_items") then {