mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed incorrect function calls for location
This commit is contained in:
parent
1781629c13
commit
ab045e49c8
@ -44,8 +44,8 @@ if ("All" in _locations) exitwith {true};
|
|||||||
_return = false;
|
_return = false;
|
||||||
{
|
{
|
||||||
if (_x == "field") exitwith {_return = true;};
|
if (_x == "field") exitwith {_return = true;};
|
||||||
if (_x == "MedicalFacility" && {[_caller, _target] call FUNC(inMedicalFacility)}) exitwith {_return = true;};
|
if (_x == "MedicalFacility" && {([_caller] call FUNC(isInMedicalFacility)) || ([_target] call FUNC(isInMedicalFacility))}) exitwith {_return = true;};
|
||||||
if (_x == "MedicalVehicle" && {[_caller, _target] call FUNC(inMedicalVehicle)}) exitwith {_return = true;};
|
if (_x == "MedicalVehicle" && {([vehicle _caller] call FUNC(isMedicalVehicle)) || ([vehicle _target] call FUNC(isMedicalVehicle))}) exitwith {_return = true;};
|
||||||
}foreach _locations;
|
}foreach _locations;
|
||||||
|
|
||||||
if !(_return) exitwith {false};
|
if !(_return) exitwith {false};
|
||||||
|
Loading…
Reference in New Issue
Block a user