Fix observer widgets not showing up when a player loses

Fixes #6172.
This commit is contained in:
Oliver Brakmann
2014-08-05 02:54:42 +02:00
parent cacb9fee64
commit b85d5a9193
2 changed files with 17 additions and 2 deletions

View File

@@ -172,7 +172,7 @@ namespace OpenRA.Mods.D2k.Widgets.Logic
cachedRadarActive = radarActive;
// Switch to observer mode after win/loss
if (world.LocalPlayer.WinState != WinState.Undefined)
if (world.ObserveAfterWinOrLose && world.LocalPlayer.WinState != WinState.Undefined)
Game.RunAfterTick(() =>
{
playerRoot.RemoveChildren();