From 10d4047b4cb0651d9af28c25f3600a3db707c8be Mon Sep 17 00:00:00 2001 From: commy2 Date: Mon, 19 Sep 2016 17:52:16 +0200 Subject: [PATCH] fix problems with ported treatment --- addons/medical_treatment/functions/fnc_litterCreate.sqf | 2 +- addons/medical_treatment/functions/fnc_litterHandleCreate.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/medical_treatment/functions/fnc_litterCreate.sqf b/addons/medical_treatment/functions/fnc_litterCreate.sqf index 115fa10c07..3104f4b2a4 100644 --- a/addons/medical_treatment/functions/fnc_litterCreate.sqf +++ b/addons/medical_treatment/functions/fnc_litterCreate.sqf @@ -65,7 +65,7 @@ private _createLitter = { { if (count _x < MIN_ENTRIES_LITTER_CONFIG) then { - WARNING_1("Wrong litter array: %1",_x); + WARNING(format [ARR_2("Wrong litter array: %1",_x)]); } else { _x params [ ["_selection", "", [""]], diff --git a/addons/medical_treatment/functions/fnc_litterHandleCreate.sqf b/addons/medical_treatment/functions/fnc_litterHandleCreate.sqf index 8c5fe49dd7..2bec813e7b 100644 --- a/addons/medical_treatment/functions/fnc_litterHandleCreate.sqf +++ b/addons/medical_treatment/functions/fnc_litterHandleCreate.sqf @@ -45,7 +45,7 @@ _litterObject setPosASL _position; _object setPosASL _position; }, [_litterObject, _position]] call CBA_fnc_execNextFrame; -private _maxLitterCount = getArray (configFile >> "ACE_Settings" >> QEGVAR(medical,litterSimulationDetail) >> "_values") select GVAR(medical,litterSimulationDetail); +private _maxLitterCount = getArray (configFile >> "ACE_Settings" >> QEGVAR(medical,litterSimulationDetail) >> "_values") select EGVAR(medical,litterSimulationDetail); if (count GVAR(allCreatedLitter) > _maxLitterCount) then { // gank the first litter object, and spawn ours.