diff --git a/addons/medical_treatment/functions/fnc_createLitterServer.sqf b/addons/medical_treatment/functions/fnc_createLitterServer.sqf
index 69f684b5a6..cc64698c71 100644
--- a/addons/medical_treatment/functions/fnc_createLitterServer.sqf
+++ b/addons/medical_treatment/functions/fnc_createLitterServer.sqf
@@ -53,7 +53,7 @@ if (count GVAR(litterObjects) > GVAR(maxLitterObjects)) then {
GVAR(litterObjects) pushBack [_object, CBA_missionTime];
// Start cleanup loop if not already running and litter lifetime is not forever
-if (!GVAR(litterCleanup) && {GVAR(litterCleanUpDelay) > 0}) then {
+if (!GVAR(litterCleanup) && {GVAR(litterCleanupDelay) > 0}) then {
[] call FUNC(litterCleanupLoop);
GVAR(litterCleanup) = true;
};
diff --git a/addons/medical_treatment/functions/fnc_litterCleanupLoop.sqf b/addons/medical_treatment/functions/fnc_litterCleanupLoop.sqf
index 9b6740f501..1039edb4c6 100644
--- a/addons/medical_treatment/functions/fnc_litterCleanupLoop.sqf
+++ b/addons/medical_treatment/functions/fnc_litterCleanupLoop.sqf
@@ -1,7 +1,7 @@
#include "script_component.hpp"
/*
* Author: Glowbal, esteldunedain, mharis001
- * Handles cleaning up litter objects that have reached their lifetime.
+ * Handles cleaning up litter objects that have reached the end of their lifetime.
*
* Arguments:
* None
@@ -20,7 +20,7 @@
// Litter array has older objects at the beginning
// Can exit on first element that still has lifetime remaining
- if (CBA_missionTime - _timeCreated < GVAR(litterCleanUpDelay)) exitWith {};
+ if (CBA_missionTime - _timeCreated < GVAR(litterCleanupDelay)) exitWith {};
deleteVehicle _object;
GVAR(litterObjects) set [_forEachIndex, objNull];
diff --git a/addons/medical_treatment/initSettings.sqf b/addons/medical_treatment/initSettings.sqf
index 2a22f4e853..bbb1b99ec0 100644
--- a/addons/medical_treatment/initSettings.sqf
+++ b/addons/medical_treatment/initSettings.sqf
@@ -166,9 +166,9 @@
] call CBA_settings_fnc_init;
[
- QGVAR(litterCleanUpDelay),
+ QGVAR(litterCleanupDelay),
"SLIDER",
- [LSTRING(LitterCleanUpDelay_DisplayName), LSTRING(LitterCleanUpDelay_Description)],
+ [LSTRING(LitterCleanupDelay_DisplayName), LSTRING(LitterCleanupDelay_Description)],
[ELSTRING(medical,Category), LSTRING(SubCategory_Litter)],
[-1, 3600, 600, 0],
true
diff --git a/addons/medical_treatment/stringtable.xml b/addons/medical_treatment/stringtable.xml
index d062c881b4..f444224f0b 100644
--- a/addons/medical_treatment/stringtable.xml
+++ b/addons/medical_treatment/stringtable.xml
@@ -196,10 +196,10 @@
Sets the maximum number of litter objects which can be spawned, excessive amounts can cause FPS lag.
-
+
Litter Lifetime
-
+
Controls the lifetime of litter objects, in seconds. -1 is forever.