Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions addons/recorder/fnc_trackSectors.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (_this isEqualType []) exitWith {
if (_sector getVariable [QGVAR(sectorTracked), false]) exitWith {};
_sector setVariable [QGVAR(sectorTracked), true];

_sector addEventHandler ["OwnerChanged", {
[_sector, "OwnerChanged", {
params ["_sector", "_oldOwner", "_newOwner"];
if (!SHOULDSAVEEVENTS) exitWith {};
if (_newOwner isEqualTo sideUnknown) exitWith {};
Expand All @@ -42,7 +42,7 @@ if (_this isEqualType []) exitWith {

[QGVARMAIN(customEvent), ["captured", format ["%1,sector", _name]]] call CBA_fnc_localEvent;
INFO_3("Sector captured: %1 — %2 -> %3",_name,_oldOwner,_newOwner);
}];
}] call BIS_fnc_addScriptedEventHandler;
};

// --- Init mode: track all existing sectors + Zeus monitoring ---
Expand Down