Don't require a WorldRenderer to draw non-world-rendering widgets.

This commit is contained in:
Paul Chote
2011-01-19 20:19:15 +13:00
committed by Paul Chote
parent e3c090a201
commit 481cc7807b
38 changed files with 115 additions and 93 deletions

View File

@@ -31,9 +31,9 @@ namespace OpenRA.Mods.RA
public void WorldLoaded(World world)
{
if (world.LocalPlayer != null)
world.OpenWindow(Info.Widget);
Game.OpenWindow(world, Info.Widget);
else if (Info.ObserverWidget != null)
world.OpenWindow(Info.ObserverWidget);
Game.OpenWindow(world, Info.ObserverWidget);
}
}
}