Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mazinskihenry committed Dec 2, 2024
1 parent 02e012d commit 2c4cc24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addons/breathing/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class CfgVehicles {
class ACE_SelfActions {
class KAT_AttachOxygenVehicle {
displayName = CSTRING(AttachOxygenVehicle);
condition = QUOTE(([ARR_2(_target,_player)] call FUNC(checkAircraftOxygen)) && (_player call EFUNC(airway,checkMask)));
condition = QUOTE(((_player call FUNC(checkAircraftOxygen)) && (_player call EFUNC(airway,checkMask)));
statement = QUOTE(_player call FUNC(attachVehicleOxygen));
insertChildren = "";
exceptions[] = {};
Expand All @@ -189,7 +189,7 @@ class CfgVehicles {
class ACE_SelfActions {
class KAT_AttachOxygenVehicle {
displayName = CSTRING(AttachOxygenVehicle);
condition = QUOTE((call FUNC(checkAircraftOxygen)) && (_player call EFUNC(airway,checkMask)));
condition = QUOTE(((_player call FUNC(checkAircraftOxygen)) && (_player call EFUNC(airway,checkMask)));
statement = QUOTE(_player call FUNC(attachVehicleOxygen));
insertChildren = "";
exceptions[] = {};
Expand Down
2 changes: 1 addition & 1 deletion addons/breathing/functions/fnc_checkAircraftOxygen.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Public: No
*/

params ["_vehicle", "_patient"];
params ["_patient"];

if (isNull objectParent _patient) exitWith {
false
Expand Down

0 comments on commit 2c4cc24

Please sign in to comment.