From c1fb6c273224e0ca3b039e30c73a335bf76f2d1b Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 23 Dec 2010 08:48:54 +1300 Subject: [PATCH] remove ability to not save syncreports --- OpenRA.Game/GameRules/Settings.cs | 1 - OpenRA.Game/Network/SyncReport.cs | 3 --- .../Widgets/Delegates/SettingsMenuDelegate.cs | 8 -------- mods/cnc/chrome/settings.yaml | 11 ++--------- mods/ra/chrome/settings.yaml | 11 ++--------- 5 files changed, 4 insertions(+), 30 deletions(-) diff --git a/OpenRA.Game/GameRules/Settings.cs b/OpenRA.Game/GameRules/Settings.cs index 9bb57d1b50..ad753bc696 100755 --- a/OpenRA.Game/GameRules/Settings.cs +++ b/OpenRA.Game/GameRules/Settings.cs @@ -33,7 +33,6 @@ namespace OpenRA.GameRules { public bool BotDebug = false; public bool PerfGraph = false; - public bool RecordSyncReports = true; public float LongTickThreshold = 0.001f; } diff --git a/OpenRA.Game/Network/SyncReport.cs b/OpenRA.Game/Network/SyncReport.cs index c55745a605..3c2b5b66fc 100755 --- a/OpenRA.Game/Network/SyncReport.cs +++ b/OpenRA.Game/Network/SyncReport.cs @@ -24,9 +24,6 @@ namespace OpenRA.Network internal void UpdateSyncReport() { - if (!Game.Settings.Debug.RecordSyncReports) - return; - GenerateSyncReport(syncReports[curIndex]); curIndex = ++curIndex % numSyncReports; } diff --git a/OpenRA.Mods.RA/Widgets/Delegates/SettingsMenuDelegate.cs b/OpenRA.Mods.RA/Widgets/Delegates/SettingsMenuDelegate.cs index 4018501676..2cacb6d14f 100755 --- a/OpenRA.Mods.RA/Widgets/Delegates/SettingsMenuDelegate.cs +++ b/OpenRA.Mods.RA/Widgets/Delegates/SettingsMenuDelegate.cs @@ -149,14 +149,6 @@ namespace OpenRA.Mods.RA.Widgets.Delegates return true; }; - var syncreports = debug.GetWidget("SYNCREPORTS_CHECKBOX"); - syncreports.Checked = () => { return Game.Settings.Debug.RecordSyncReports; }; - syncreports.OnMouseDown = mi => - { - Game.Settings.Debug.RecordSyncReports ^= true; - return true; - }; - var timedebug = debug.GetWidget("GAMETIME_CHECKBOX"); timedebug.Checked = () => {return Game.Settings.Game.MatchTimer;}; timedebug.OnMouseDown = mi => diff --git a/mods/cnc/chrome/settings.yaml b/mods/cnc/chrome/settings.yaml index 633ac47b0e..6cb97571c8 100644 --- a/mods/cnc/chrome/settings.yaml +++ b/mods/cnc/chrome/settings.yaml @@ -210,17 +210,10 @@ Background@SETTINGS_MENU: Width:300 Height:20 Text:Show Performance Information - Checkbox@SYNCREPORTS_CHECKBOX: - Id:SYNCREPORTS_CHECKBOX + Checkbox@GAMETIME_CHECKBOX: + Id:GAMETIME_CHECKBOX X:0 Y:30 Width:300 Height:20 - Text:Collect Sync Reports - Checkbox@GAMETIME_CHECKBOX: - Id:GAMETIME_CHECKBOX - X:0 - Y:60 - Width:300 - Height:20 Text:Show Game Time Counter diff --git a/mods/ra/chrome/settings.yaml b/mods/ra/chrome/settings.yaml index 633ac47b0e..6cb97571c8 100644 --- a/mods/ra/chrome/settings.yaml +++ b/mods/ra/chrome/settings.yaml @@ -210,17 +210,10 @@ Background@SETTINGS_MENU: Width:300 Height:20 Text:Show Performance Information - Checkbox@SYNCREPORTS_CHECKBOX: - Id:SYNCREPORTS_CHECKBOX + Checkbox@GAMETIME_CHECKBOX: + Id:GAMETIME_CHECKBOX X:0 Y:30 Width:300 Height:20 - Text:Collect Sync Reports - Checkbox@GAMETIME_CHECKBOX: - Id:GAMETIME_CHECKBOX - X:0 - Y:60 - Width:300 - Height:20 Text:Show Game Time Counter