Disable MP sync report generation by default.

A new Server.EnableSyncReports option is provided
so that server operators can restore them remotely
in the event of a future desync bug.
This commit is contained in:
Paul Chote
2018-11-25 21:59:36 +00:00
committed by reaperrr
parent 081182b60f
commit cc707f0037
4 changed files with 7 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using OpenRA.Primitives;
using OpenRA.Support;
namespace OpenRA.Network
{
@@ -67,7 +68,7 @@ namespace OpenRA.Network
// Generating sync reports is expensive, so only do it if we have
// other players to compare against if a desync did occur
generateSyncReport = !(Connection is ReplayConnection) && LobbyInfo.NonBotClients.Count() > 1;
generateSyncReport = !(Connection is ReplayConnection) && LobbyInfo.GlobalSettings.EnableSyncReports;
NetFrameNumber = 1;
for (var i = NetFrameNumber; i <= FramesAhead; i++)