Fix admin loc spam 2 (#42265)
This commit is contained in:
parent
4ce6d3d1af
commit
c859a9f33b
|
|
@ -134,7 +134,7 @@ internal sealed class AdminNameOverlay : Overlay
|
|||
? null
|
||||
: _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 roleSymbol = rolePrototype?.Symbol ?? RoleTypePrototype.FallbackSymbol;
|
||||
|
||||
|
|
@ -255,7 +255,7 @@ internal sealed class AdminNameOverlay : Overlay
|
|||
color = roleColor;
|
||||
symbol = IsFiltered(playerInfo.RoleProto) ? symbol : string.Empty;
|
||||
text = IsFiltered(playerInfo.RoleProto)
|
||||
? roleName.ToUpper()
|
||||
? Loc.GetString(roleName).ToUpper()
|
||||
: string.Empty;
|
||||
break;
|
||||
case AdminOverlayAntagFormat.Subtype:
|
||||
|
|
|
|||
Loading…
Reference in New Issue