log the nextScanTime for ChooseTarget in AutoTarget
for debugging purposes to investigate desyncs
This commit is contained in:
@@ -108,6 +108,7 @@ namespace OpenRA.Mods.RA
|
|||||||
var info = self.Info.Traits.Get<AttackBaseInfo>();
|
var info = self.Info.Traits.Get<AttackBaseInfo>();
|
||||||
nextScanTime = (int)(25 * (info.ScanTimeAverage +
|
nextScanTime = (int)(25 * (info.ScanTimeAverage +
|
||||||
(self.World.SharedRandom.NextFloat() * 2 - 1) * info.ScanTimeSpread));
|
(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));
|
var inRange = self.World.FindUnitsInCircle(self.CenterLocation, (int)(Game.CellSize * range));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user