checking for contribution during a base capture does not result in the generation of heat

This commit is contained in:
Fate-JH 2023-04-25 19:44:02 -04:00
parent a1cf6c2701
commit 44986739c1

View file

@ -349,8 +349,11 @@ class ZoneHotSpotHistory(zone: Zone, hotspots: ListBuffer[HotSpotInfo], blanking
val out = progressionOfIntervals
.flatMap { y =>
val yFloat = span * y.toFloat
progressionOfIntervals.map { x => TryHotSpot(lowerLeftCorner + Vector3(span * x.toFloat, yFloat, 0f)) }
progressionOfIntervals.map { x =>
hotspots.find { _.DisplayLocation == lowerLeftCorner + Vector3(span * x.toFloat, yFloat, 0f) }
}
}
.flatten
.filter { info => Vector3.DistanceSquared(center, info.DisplayLocation) < squareRadius }
.distinctBy { _.DisplayLocation }
.toList