log the nextScanTime for ChooseTarget in AutoTarget

for debugging purposes to investigate desyncs
This commit is contained in:
Matthias Mailänder
2013-03-04 10:25:20 +01:00
parent 29e917ae88
commit a02fddd1a0

View File

@@ -108,6 +108,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));