Fix admin loc spam 2 (#42265)

This commit is contained in:
Princess Cheeseballs 2026-01-06 11:29:10 -08:00 committed by BarryNorfolk
parent 4ce6d3d1af
commit c859a9f33b
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ internal sealed class AdminNameOverlay : Overlay
? null ? null
: _prototypeManager.Index(playerInfo.RoleProto.Value); : _prototypeManager.Index(playerInfo.RoleProto.Value);
var roleName = Loc.GetString(rolePrototype?.Name ?? RoleTypePrototype.FallbackName); var roleName = rolePrototype?.Name ?? RoleTypePrototype.FallbackName;
var roleColor = rolePrototype?.Color ?? RoleTypePrototype.FallbackColor; var roleColor = rolePrototype?.Color ?? RoleTypePrototype.FallbackColor;
var roleSymbol = rolePrototype?.Symbol ?? RoleTypePrototype.FallbackSymbol; var roleSymbol = rolePrototype?.Symbol ?? RoleTypePrototype.FallbackSymbol;
@ -255,7 +255,7 @@ internal sealed class AdminNameOverlay : Overlay
color = roleColor; color = roleColor;
symbol = IsFiltered(playerInfo.RoleProto) ? symbol : string.Empty; symbol = IsFiltered(playerInfo.RoleProto) ? symbol : string.Empty;
text = IsFiltered(playerInfo.RoleProto) text = IsFiltered(playerInfo.RoleProto)
? roleName.ToUpper() ? Loc.GetString(roleName).ToUpper()
: string.Empty; : string.Empty;
break; break;
case AdminOverlayAntagFormat.Subtype: case AdminOverlayAntagFormat.Subtype: