Don't show debug message when paying with exact amount

This commit is contained in:
ebaydayz
2016-05-08 13:30:26 -04:00
parent c477304571
commit 84e64be47e
2 changed files with 6 additions and 1 deletions

View File

@@ -19,6 +19,10 @@ if (!isNull Z_vehicle && count _moneyInVehicle > 0 ) then {
_nil = [Z_vehicle, _moneyInVehicle, []] call ZUPA_fnc_removeWeaponsAndMagazinesCargo;
};
_success = [_toPay, _totalWorth] call Z_returnChange;
if (_totalWorth - _toPay == 0) then { // Money in inventory was exact amount
_success = true;
} else {
_success = [_toPay,_totalWorth] call Z_returnChange;
};
_success