Compare commits
2 Commits
cbd8b5963e
...
fac86f18f0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fac86f18f0 | ||
|
|
87b6f359c1 |
@@ -4,12 +4,13 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project badly attempts [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project badly attempts [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [4.1.2] - 2024-04-21
|
## [4.1.2] - 2024-04-25
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Fix internal versioning
|
- Fix internal versioning
|
||||||
- Swap resupply box 5.56 magazines due to mod conflict
|
- Swap resupply box 5.56 magazines due to mod conflict
|
||||||
|
- Group deletion handler now properly processes empty groups and logs errors
|
||||||
|
|
||||||
## [4.1.1] - 2024-04-19
|
## [4.1.1] - 2024-04-19
|
||||||
|
|
||||||
|
|||||||
@@ -10,31 +10,39 @@
|
|||||||
GVAR(emptyGroupCleanupPFH) = [
|
GVAR(emptyGroupCleanupPFH) = [
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
if (local _x) then {
|
if ((count units _x) == 0) then {
|
||||||
if ((count units _x) == 0) then {
|
if (local _x) then {
|
||||||
[
|
[
|
||||||
LEVEL_INFO,
|
LEVEL_INFO,
|
||||||
QUOTE(COMPONENT),
|
QUOTE(COMPONENT),
|
||||||
format["Deleting local empty group %1", groupId _x],
|
"DELETING EMPTY GROUP",
|
||||||
[]
|
[
|
||||||
|
["groupId", groupId _x],
|
||||||
|
["netId", netId _x]
|
||||||
|
]
|
||||||
] call EFUNC(common,log);
|
] call EFUNC(common,log);
|
||||||
deleteGroup _x;
|
deleteGroup _x;
|
||||||
};
|
|
||||||
} else {
|
|
||||||
if (isServer) then {
|
|
||||||
[
|
|
||||||
LEVEL_INFO,
|
|
||||||
QUOTE(COMPONENT),
|
|
||||||
format["Cannot delete group %1 as owner is %2", groupId _x, owner _x],
|
|
||||||
[]
|
|
||||||
] call EFUNC(common,log);
|
|
||||||
} else {
|
} else {
|
||||||
[
|
if (isServer) then {
|
||||||
LEVEL_INFO,
|
[
|
||||||
QUOTE(COMPONENT),
|
LEVEL_INFO,
|
||||||
format["Cannot delete group %1 as owner is %2", groupId _x, groupOwner _x],
|
QUOTE(COMPONENT),
|
||||||
[]
|
"NON LOCAL EMPTY GROUP",
|
||||||
] call EFUNC(common,log);
|
[
|
||||||
|
["groupId", groupId _x],
|
||||||
|
["groupOwner", groupOwner _x]
|
||||||
|
]
|
||||||
|
] call EFUNC(common,log);
|
||||||
|
} else {
|
||||||
|
[
|
||||||
|
LEVEL_INFO,
|
||||||
|
QUOTE(COMPONENT),
|
||||||
|
"EMPTY REMOTE GROUP",
|
||||||
|
[
|
||||||
|
["groupId", groupId _x]
|
||||||
|
]
|
||||||
|
] call EFUNC(common,log);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} forEach allGroups;
|
} forEach allGroups;
|
||||||
@@ -61,6 +69,3 @@ GVAR(emptyGroupCleanupPFH) = [
|
|||||||
{ not (missionNamespace getVariable [QGVAR(emptyGroupCleanup_enable), false]) },
|
{ not (missionNamespace getVariable [QGVAR(emptyGroupCleanup_enable), false]) },
|
||||||
[]
|
[]
|
||||||
] call CBA_fnc_createPerFrameHandlerObject;
|
] call CBA_fnc_createPerFrameHandlerObject;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user