Merge pull request #7538 from cjshmyr/teamhealth

Give ally players a yellow health bar (team health colors)
This commit is contained in:
abcdefg30
2015-05-12 18:01:27 +02:00
3 changed files with 23 additions and 6 deletions

View File

@@ -35,6 +35,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
if (world.ObserveAfterWinOrLose && world.LocalPlayer.WinState != WinState.Undefined)
Game.RunAfterTick(() =>
{
world.LocalPlayer.Spectating = true;
playerRoot.RemoveChildren();
Game.LoadWidget(world, "OBSERVER_WIDGETS", playerRoot, new WidgetArgs());
});