tidy up syncreport so it's just the interesting frame

This commit is contained in:
Chris Forbes
2010-04-30 19:19:22 +12:00
parent b2ec750bcd
commit a22aa7ccb8
2 changed files with 20 additions and 16 deletions

View File

@@ -244,13 +244,17 @@ namespace OpenRA
return sb.ToString();
}
public static void DumpSyncReport()
public static void DumpSyncReport( int frame )
{
foreach (var f in syncReports)
var f = syncReports.FirstOrDefault(a => a.First == frame);
if (f == null)
{
Log.Write("Sync for net frame {0} -------------", f.First);
Log.Write("{0}", f.Second);
Log.Write("No sync report available!");
return;
}
Log.Write("Sync for net frame {0} -------------", f.First);
Log.Write("{0}", f.Second);
}
public static void Tick()