Merge pull request #2729 from Mailaender/sync

Dump some more values into the debug log to investigate desyncs
This commit is contained in:
Chris Forbes
2013-03-09 21:10:42 -08:00
3 changed files with 7 additions and 5 deletions

View File

@@ -109,6 +109,7 @@ namespace OpenRA.Mods.RA
var info = self.Info.Traits.Get<AttackBaseInfo>();
nextScanTime = (int)(25 * (info.ScanTimeAverage +
(self.World.SharedRandom.NextFloat() * 2 - 1) * info.ScanTimeSpread));
Log.Write("debug", "Actor {0}; nextScanTime: {1}", self.ActorID, nextScanTime);
var inRange = self.World.FindUnitsInCircle(self.CenterLocation, (int)(Game.CellSize * range));