mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix litterCleanupDelay name
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
@ -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];
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user