checking for contribution during a base capture does not result in the generation of heat (#1070)

This commit is contained in:
Fate-JH 2023-04-26 12:24:35 -04:00 committed by GitHub
parent a1cf6c2701
commit 90b7d2591d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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