Skip to content

Commit

Permalink
actually remove them
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrawnyRonnie committed Jan 10, 2024
1 parent 89ac6ec commit ea6b6d6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,11 @@ class SquadService extends Actor {
val sguid = GetNextSquadId()
val squad = new Squad(sguid, faction)
val leadPosition = squad.Membership(0)
//keep publishedLists clear of old squads. PR 1157 for details
val factionListings = publishedLists(faction)
val guidsToRemove = factionListings.filterNot(squadFeatures.contains).toList
guidsToRemove.foreach(factionListings -= _)

leadPosition.Name = name
leadPosition.CharId = player.CharId
leadPosition.Health = StatConverter.Health(player.Health, player.MaxHealth, min = 1, max = 64)
Expand Down

0 comments on commit ea6b6d6

Please sign in to comment.