From 87720891737a49a65936d96bd8f01c59c10446a2 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 24 Mar 2010 07:42:18 +1300 Subject: [PATCH] less bs. --- OpenRA.Game/Chrome/DefaultWidgetDelegates.cs | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/OpenRA.Game/Chrome/DefaultWidgetDelegates.cs b/OpenRA.Game/Chrome/DefaultWidgetDelegates.cs index 5044021620..b07b8513e6 100644 --- a/OpenRA.Game/Chrome/DefaultWidgetDelegates.cs +++ b/OpenRA.Game/Chrome/DefaultWidgetDelegates.cs @@ -55,21 +55,11 @@ namespace OpenRA.Widgets.Delegates { public override bool GetState(Widget w) { - if (w.Id == "SETTINGS_CHECKBOX_UNITDEBUG") - return Game.Settings.UnitDebug; - - if (w.Id == "SETTINGS_CHECKBOX_PATHDEBUG") - return Game.Settings.PathDebug; - - if (w.Id == "SETTINGS_CHECKBOX_INDEXDEBUG") - return Game.Settings.IndexDebug; - - if (w.Id == "SETTINGS_CHECKBOX_PERFGRAPH") - return Game.Settings.PerfGraph; - - if (w.Id == "SETTINGS_CHECKBOX_PERFTEXT") - return Game.Settings.PerfText; - + if (w.Id == "SETTINGS_CHECKBOX_UNITDEBUG") return Game.Settings.UnitDebug; + if (w.Id == "SETTINGS_CHECKBOX_PATHDEBUG") return Game.Settings.PathDebug; + if (w.Id == "SETTINGS_CHECKBOX_INDEXDEBUG") return Game.Settings.IndexDebug; + if (w.Id == "SETTINGS_CHECKBOX_PERFGRAPH") return Game.Settings.PerfGraph; + if (w.Id == "SETTINGS_CHECKBOX_PERFTEXT") return Game.Settings.PerfText; return false; }