Merge pull request #1974 from oiad/patch-3

Add support for keeping the key on vehicle sale
This commit is contained in:
icomrade
2017-09-08 10:04:35 -04:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ _containerFindKey = {
};
if ((count _VehKey2) > 0) then {
if ((_VehKey2 select 0) == "0" || _delType in DZE_tradeVehicleKeyless) then {
if ((_VehKey2 select 0) == "0" || _delType in DZE_tradeVehicleKeyless || DZE_keepVehicleKey) then {
_localResult2 = 1;
} else {
{
@@ -65,4 +65,4 @@ if ((count _VehKey2) > 0) then {
} else {
_localResult2 = 0;
};
_localResult2;
_localResult2;