Fix defused UXOs being able to be defused again and detected by mine detector (#5623)

This commit is contained in:
jonpas 2017-10-15 13:13:16 +02:00 committed by GitHub
parent 6ee16db792
commit d598906205
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ if (!("ACE_DefusalKit" in (items ACE_player))) exitWith {};
//If player moved >5 meters from last pos, then rescan
if (((getPosASL ace_player) distance _setPosition) > 5) then {
{
if (((_x distance ACE_player) < 15) && {!(_x in _minesHelped)}) then {
if (((_x distance ACE_player) < 15) && {!(_x in _minesHelped)} && {(getModelInfo _x) select 0 != "empty.p3d"}) then {
private _config = configFile >> "CfgAmmo" >> typeOf _x;
private _size = getNumber (_config >> QGVAR(size));

View File

@ -42,7 +42,7 @@ private _distance = -1;
private _objectType = typeOf _x;
_isDetectable = GVAR(detectableClasses) getVariable _objectType;
if (isNil "_isDetectable") then {
if (isNil "_isDetectable" || {(getModelInfo _x) select 0 == "empty.p3d"}) then {
_isDetectable = false;
};