Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mazinskihenry committed Dec 2, 2024
1 parent 81824fe commit d1e49e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 3 additions & 7 deletions addons/circulation/functions/fnc_CPRStart.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ GVAR(CPRCancel_MouseID) = [0xF0, [false, false, false], {

GVAR(CPRDevice_Iterate) = [0xF1, [false, false, false], {
private _deviceCode = GVAR(CPRTarget) getVariable [QGVAR(deviceCode), 0];
_deviceCode = [(_deviceCode + 1), 1] select (_deviceCode == 3);
private _deviceArray = [true,(GVAR(CPRTarget) getVariable [QEGVAR(breathing,pulseoximeter), false]),((GVAR(CPRTarget) getVariable [QGVAR(AED_X_VitalsMonitor_Connected), false]) || (GVAR(CPRTarget) getVariable [QGVAR(DefibrillatorPads_Connected), false])),(GVAR(CPRTarget) getVariable [QGVAR(watchAvailable), false])];
_deviceCode = [(_deviceCode + 1), 1] select (_deviceCode == 2);
private _deviceArray = [true,(GVAR(CPRTarget) getVariable [QEGVAR(breathing,pulseoximeter), false]),((GVAR(CPRTarget) getVariable [QGVAR(AED_X_VitalsMonitor_Connected), false]) || (GVAR(CPRTarget) getVariable [QGVAR(DefibrillatorPads_Connected), false]))];
while { !(_deviceArray select _deviceCode) } do {
_deviceCode = [0, (_deviceCode + 1)] select (_deviceCode < 3);
_deviceCode = [0, (_deviceCode + 1)] select (_deviceCode < 2);
};
GVAR(CPRTarget) setVariable [QGVAR(deviceCode), _deviceCode, true];
true
Expand Down Expand Up @@ -77,10 +77,6 @@ if (_notInVehicle) then {
};

switch (true) do {
case (_deviceCode == 3): {
GVAR(CPRDisplayActive) = false;
"CPR_MONITOR" cutText ["", "PLAIN",0,true];
};
case (_deviceCode == 2): {
if ((_patient getVariable [QGVAR(AED_X_VitalsMonitor_Connected), false]) || (_patient getVariable [QGVAR(DefibrillatorPads_Connected), false])) then {
if !(GVAR(CPRDisplayActive)) then {
Expand Down
2 changes: 0 additions & 2 deletions addons/circulation/functions/fnc_fullHealLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ _patient setVariable [QGVAR(cprCount), 2, true];
_patient setVariable [QGVAR(heartRestart), false, true];
_patient setVariable [QGVAR(cardiacArrestType), 0, true];

_patient setVariable [QGVAR(watchAvailable), false, true];

_patient setVariable [VAR_BLOODPRESSURE_CHANGE, nil, true];

_patient setVariable [QGVAR(bodyFluid), DEFAULT_BODY_FLUID];
Expand Down

0 comments on commit d1e49e8

Please sign in to comment.