Hide Chrome once we have Won or Lost

This commit is contained in:
Mark Olson
2011-11-22 22:49:26 -06:00
committed by Chris Forbes
parent bf222425fc
commit 2bb968d0d3
5 changed files with 8 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ namespace OpenRA.Mods.RA.Widgets
public override void Draw()
{
if( world.LocalPlayer == null ) return;
if( world.LocalPlayer.WinState != WinState.Undefined ) return;
var digitCollection = "digits-" + world.LocalPlayer.Country.Race;
var chromeCollection = "chrome-" + world.LocalPlayer.Country.Race;