remove ability to not save syncreports

This commit is contained in:
Chris Forbes
2010-12-23 08:48:54 +13:00
parent 68e8565561
commit c1fb6c2732
5 changed files with 4 additions and 30 deletions

View File

@@ -33,7 +33,6 @@ namespace OpenRA.GameRules
{
public bool BotDebug = false;
public bool PerfGraph = false;
public bool RecordSyncReports = true;
public float LongTickThreshold = 0.001f;
}

View File

@@ -24,9 +24,6 @@ namespace OpenRA.Network
internal void UpdateSyncReport()
{
if (!Game.Settings.Debug.RecordSyncReports)
return;
GenerateSyncReport(syncReports[curIndex]);
curIndex = ++curIndex % numSyncReports;
}

View File

@@ -149,14 +149,6 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
return true;
};
var syncreports = debug.GetWidget<CheckboxWidget>("SYNCREPORTS_CHECKBOX");
syncreports.Checked = () => { return Game.Settings.Debug.RecordSyncReports; };
syncreports.OnMouseDown = mi =>
{
Game.Settings.Debug.RecordSyncReports ^= true;
return true;
};
var timedebug = debug.GetWidget<CheckboxWidget>("GAMETIME_CHECKBOX");
timedebug.Checked = () => {return Game.Settings.Game.MatchTimer;};
timedebug.OnMouseDown = mi =>

View File

@@ -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

View File

@@ -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