Skip to content

Commit

Permalink
sync active_sectors
Browse files Browse the repository at this point in the history
  • Loading branch information
tbox1911 committed May 29, 2024
1 parent e7c6c6b commit 0332fbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core.liberation/scripts/server/sector/manage_one_sector.sqf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
params [ "_sector" ];
active_sectors pushback _sector;
publicVariable "active_sectors";

private _sector_pos = markerPos _sector;
private _stopit = false;
Expand Down Expand Up @@ -288,6 +289,7 @@ if ( (!(_sector in blufor_sectors)) && (([_sector_pos, GRLIB_sector_size, GRLIB_
};

active_sectors = active_sectors - [_sector];
publicVariable "active_sectors";
diag_log format ["End Defend Sector %1 at %2", _sector, time];

// Cleanup
Expand Down

0 comments on commit 0332fbc

Please sign in to comment.