Skip to content

Commit

Permalink
Beacons no longer glitch off on grid split (#28518)
Browse files Browse the repository at this point in the history
  • Loading branch information
Errant-4 authored and Mnemotechnician committed Jan 27, 2025
1 parent b20d5c0 commit a017cb3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Content.Server/Pinpointer/NavMapSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,16 @@ private void RefreshGrid(EntityUid uid, NavMapComponent component, MapGridCompon
component.Chunks.Clear();
component.Beacons.Clear();

// Refresh beacons
var query = EntityQueryEnumerator<NavMapBeaconComponent, TransformComponent>();
while (query.MoveNext(out var qUid, out var qNavComp, out var qTransComp))
{
if (qTransComp.ParentUid != uid)
continue;

UpdateNavMapBeaconData(qUid, qNavComp);
}

// Loop over all tiles
var tileRefs = _mapSystem.GetAllTiles(uid, mapGrid);

Expand Down

0 comments on commit a017cb3

Please sign in to comment.