Fix litterCleanupDelay name

This commit is contained in:
mharis001
2019-04-13 19:06:00 -04:00
parent 1acfff81d7
commit b4f91960ce
4 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

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

View File

@ -196,10 +196,10 @@
<Key ID="STR_ACE_Medical_Treatment_MaxLitterObjects_Description">
<English>Sets the maximum number of litter objects which can be spawned, excessive amounts can cause FPS lag.</English>
</Key>
<Key ID="STR_ACE_Medical_Treatment_LitterCleanUpDelay_DisplayName">
<Key ID="STR_ACE_Medical_Treatment_LitterCleanupDelay_DisplayName">
<English>Litter Lifetime</English>
</Key>
<Key ID="STR_ACE_Medical_Treatment_LitterCleanUpDelay_Description">
<Key ID="STR_ACE_Medical_Treatment_LitterCleanupDelay_Description">
<English>Controls the lifetime of litter objects, in seconds. -1 is forever.</English>
</Key>