mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Give inTraderCity a default value
There is no point in setting inTraderCity = "Any"; since you can use the isInTraderCity variable to check if a player is in any trader city. Also "Any" will return false for isNil, so the only time "Unknown Trader City" was being used was when the player had not entered any city yet. If they left a known trader and went to an unknown one the RPT message would say "bought x at Any". Now it will correctly say "Unknown Trader" anytime a purchase is made without inTraderCity being set.
This commit is contained in:
@@ -14,7 +14,6 @@ _Z_logTrade = {
|
||||
};
|
||||
_tcost = _price call Z_calcDefaultCurrencyNoImg;
|
||||
_currency = if (Z_SingleCurrency) then {"Coins"} else {""};
|
||||
if (isNil "inTraderCity") then {inTraderCity = "Unknown Trader City"};
|
||||
|
||||
// Log to client RPT
|
||||
if (Z_SingleCurrency) then {
|
||||
|
||||
Reference in New Issue
Block a user