mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-19 18:44:45 +00:00
actually remove them
This commit is contained in:
parent
89ac6ec48f
commit
ea6b6d69a4
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue