Remove leftovers from moving cheats into options menu.

This commit is contained in:
Paul Chote
2013-04-08 21:45:22 +12:00
parent 29ca520d89
commit 21833f34b0

View File

@@ -19,9 +19,6 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
{ {
public class CncIngameChromeLogic public class CncIngameChromeLogic
{ {
enum MenuType { None, Cheats }
MenuType menu = MenuType.None;
Widget ingameRoot; Widget ingameRoot;
ProductionTabsWidget queueTabs; ProductionTabsWidget queueTabs;
World world; World world;
@@ -87,12 +84,6 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
{ {
var cachedPause = world.Paused; var cachedPause = world.Paused;
if (menu != MenuType.None)
{
Ui.CloseWindow();
menu = MenuType.None;
}
ingameRoot.IsVisible = () => false; ingameRoot.IsVisible = () => false;
if (world.LobbyInfo.IsSinglePlayer) if (world.LobbyInfo.IsSinglePlayer)
world.IssueOrder(Order.PauseGame(true)); world.IssueOrder(Order.PauseGame(true));