Fix not showing any playerless logs when no players are selected

This commit is contained in:
DrSmugleaf
2021-11-22 20:49:36 +01:00
parent 57b6efa3fd
commit 56d475df4f

View File

@@ -198,7 +198,7 @@ public partial class AdminLogsWindow : SS14Window
private bool ShouldShowLog(AdminLogLabel label)
{
return SelectedTypes.Contains(label.Log.Type) &&
SelectedPlayers.Overlaps(label.Log.Players) &&
(SelectedPlayers.Count + label.Log.Players.Length == 0 || SelectedPlayers.Overlaps(label.Log.Players)) &&
SelectedImpacts.Contains(label.Log.Impact) &&
label.Log.Message.Contains(LogSearch.Text, StringComparison.OrdinalIgnoreCase);
}