disable team-chat when there are no allies listening

closes #4033
This commit is contained in:
Matthias Mailänder
2013-11-09 18:34:35 +01:00
parent 6c11ae36c7
commit 445b0518ef
2 changed files with 13 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
foreach (var p in world.Players.Where(a => !a.NonCombatant))
{
Player pp = p;
var pp = p;
var item = itemTemplate.Clone();
var nameLabel = item.Get<LabelWidget>("NAME");
nameLabel.GetText = () => pp.WinState == WinState.Lost ? pp.PlayerName + " (Dead)" : pp.PlayerName;