Add separate chat panel for spectators and players
Forces the chat and performance panels to be re-initialized when a player transitions to spectators. This ensures that spectators don't get to see faction themed widgets.
This commit is contained in:
committed by
Paul Chote
parent
edd3a2eb75
commit
2d0e7040db
@@ -19,7 +19,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
[ObjectCreator.UseCtor]
|
||||
public AddFactionSuffixLogic(Widget widget, World world)
|
||||
{
|
||||
if (world.LocalPlayer == null)
|
||||
if (world.LocalPlayer == null || world.LocalPlayer.Spectating)
|
||||
return;
|
||||
|
||||
if (!ChromeMetrics.TryGet("FactionSuffix-" + world.LocalPlayer.Faction.InternalName, out string faction))
|
||||
|
||||
Reference in New Issue
Block a user