Fixed space after if

This commit is contained in:
Zakant 2017-03-23 18:40:18 +01:00
parent f8a2d404e2
commit 7bd2725f29
3 changed files with 4 additions and 4 deletions

View File

@ -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];

View File

@ -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!

View File

@ -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
};