Fix bogus AdminNameOverlay Rider error (#35432)

This commit is contained in:
Pieter-Jan Briers
2025-02-24 05:37:54 +01:00
committed by GitHub
parent 6f925dd610
commit 05de5bd3eb

View File

@@ -85,7 +85,7 @@ internal sealed class AdminNameOverlay : Overlay
{ {
args.ScreenHandle.DrawString(_font, screenCoordinates + (lineoffset * 2), _antagLabelClassic, uiScale, _antagColorClassic); args.ScreenHandle.DrawString(_font, screenCoordinates + (lineoffset * 2), _antagLabelClassic, uiScale, _antagColorClassic);
} }
else if (!classic && _filter.Contains(playerInfo.RoleProto.ID)) else if (!classic && _filter.Contains(playerInfo.RoleProto))
{ {
var label = Loc.GetString(playerInfo.RoleProto.Name).ToUpper(); var label = Loc.GetString(playerInfo.RoleProto.Name).ToUpper();
var color = playerInfo.RoleProto.Color; var color = playerInfo.RoleProto.Color;