remove ability to not save syncreports
This commit is contained in:
@@ -33,7 +33,6 @@ namespace OpenRA.GameRules
|
||||
{
|
||||
public bool BotDebug = false;
|
||||
public bool PerfGraph = false;
|
||||
public bool RecordSyncReports = true;
|
||||
public float LongTickThreshold = 0.001f;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,9 +24,6 @@ namespace OpenRA.Network
|
||||
|
||||
internal void UpdateSyncReport()
|
||||
{
|
||||
if (!Game.Settings.Debug.RecordSyncReports)
|
||||
return;
|
||||
|
||||
GenerateSyncReport(syncReports[curIndex]);
|
||||
curIndex = ++curIndex % numSyncReports;
|
||||
}
|
||||
|
||||
@@ -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 =>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user