mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed space after if
This commit is contained in:
parent
f8a2d404e2
commit
7bd2725f29
@ -15,7 +15,7 @@
|
||||
|
||||
params ["_caller", "_target"];
|
||||
|
||||
if(!(_target call EFUNC(common,isAwake)) || {_target getVariable [QEGVAR(medical,inCardiacArrest), false]}) then {
|
||||
if (!(_target call EFUNC(common,isAwake)) || {_target getVariable [QEGVAR(medical,inCardiacArrest), false]}) then {
|
||||
_target setVariable [QEGVAR(medical,heartRate), 0, true];
|
||||
};
|
||||
_target setVariable [QGVAR(receiveCPR), false, true];
|
||||
|
@ -20,8 +20,8 @@ params ["_args", "_elapsedTime", "_totalTime"];
|
||||
_args params ["_caller", "_target"];
|
||||
|
||||
// If the patient awakes by mysterious force, no cpr is needed!
|
||||
if(_target call EFUNC(common,isAwake)) exitWith {false};
|
||||
if(!(_target getVariable [QEGVAR(medical,inCardiacArrest), false])) exitWith {false};
|
||||
if (_target call EFUNC(common,isAwake)) exitWith {false};
|
||||
if (!(_target getVariable [QEGVAR(medical,inCardiacArrest), false])) exitWith {false};
|
||||
|
||||
[_target] call FUNC(calculateBlood); // Calculate blood volume. If their is no pulse, nothing happens!
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
params ["_caller", "_target"];
|
||||
|
||||
_target setVariable [QGVAR(receiveCPR), true, true]; // Target receives CPR
|
||||
if(EGVAR(medical,CPRcreatesPulse) && {_target getVariable [QEGVAR(medical,heartRate), 80] == 0}) then {
|
||||
if (EGVAR(medical,CPRcreatesPulse) && {_target getVariable [QEGVAR(medical,heartRate), 80] == 0}) then {
|
||||
_target setVariable [QEGVAR(medical,heartRate), round (30 + random [-5, 0, 5]) , true]; // And we have a (random) pulse
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user