Skip to content

Commit

Permalink
fix round end summary (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 authored Dec 17, 2024
1 parent 9363814 commit 5f662c2
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,16 @@ private void AddTcToPlayer(EntityUid player, int amount, bool displayMessage = t
var allMinds = new HashSet<Entity<MindComponent>>();
if (filterDead)
{
allMinds = _mindSystem.GetAliveHumans(EntityUid.Invalid);
allMinds = _mindSystem.GetAliveHumans();
}
else
{
var query = EntityQueryEnumerator<MindComponent, HumanoidAppearanceComponent>();
while (query.MoveNext(out var mind, out var mindComp, out _))
var query = EntityQueryEnumerator<HumanoidAppearanceComponent>();
while (query.MoveNext(out var uid, out _))
{
if (!_mindSystem.TryGetMind(uid, out var mind, out var mindComp))
continue;

allMinds.Add(new Entity<MindComponent>(mind, mindComp));
}
}
Expand Down

0 comments on commit 5f662c2

Please sign in to comment.