diff --git a/addons/main/script_macros.hpp b/addons/main/script_macros.hpp index 8b9ad395c..803129dd7 100644 --- a/addons/main/script_macros.hpp +++ b/addons/main/script_macros.hpp @@ -326,7 +326,7 @@ #define REDUCE_TOTAL_BLOOD_VOLUME(unit,volume) (unit setVariable [VAR_BODY_FLUID, [(GET_BODY_FLUID(unit) select 0) - (volume / 2), (GET_BODY_FLUID(unit) select 1) - (volume / 2), (GET_BODY_FLUID(unit) select 2), (GET_BODY_FLUID(unit) select 3), (GET_BODY_FLUID(unit) select 4) - volume], true]) #undef GET_BLOOD_PRESSURE -#define GET_BLOOD_PRESSURE(unit) (unit getVariable [VAR_BLOOD_PRESS, [0,0]]) +#define GET_BLOOD_PRESSURE(unit) ([unit] call EFUNC(circulation,getBloodPressure)) #define VAR_BLOODPRESSURE_CHANGE QEGVAR(circulation,bloodPressureChange) #define GET_BLOODPRESSURE_CHANGE(unit) (unit getVariable [VAR_BLOODPRESSURE_CHANGE, [0,0]])