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
|
? 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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue