Fix round end window (#17512)

This commit is contained in:
Leon Friedrich
2023-06-21 13:18:16 +12:00
committed by GitHub
parent 049281c4f6
commit 6485dbae01
3 changed files with 11 additions and 11 deletions

View File

@@ -307,12 +307,11 @@ namespace Content.Server.GameTicking
var allMinds = Get<MindTrackerSystem>().AllMinds;
foreach (var mind in allMinds)
{
if (mind == null)
continue;
// TODO don't list redundant observer roles?
// I.e., if a player was an observer ghost, then a hamster ghost role, maybe just list hamster and not
// the observer role?
var userId = mind.UserId ?? mind.OriginalOwnerUserId;
// Some basics assuming things fail
var userId = mind.OriginalOwnerUserId;
var playerOOCName = userId.ToString();
var connected = false;
var observer = mind.AllRoles.Any(role => role is ObserverRole);
// Continuing