Measure surface rather than perimeter

This commit is contained in:
DBotThePony 2022-02-21 09:15:25 +07:00
parent 4474026fd4
commit 05e21deb57
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -806,7 +806,7 @@ abstract class Chunk<WorldType : World<WorldType, This>, This : Chunk<WorldType,
val aabb: AABB
if (xSpanDepth + ySpanDepth > xSpanSize + ySpanSize) {
if (xSpanDepth * ySpanDepth > xSpanSize * ySpanSize) {
depthFirst.markSeen()
aabb = AABB(depthFirst.mins.toDoubleVector(), depthFirst.maxs.toDoubleVector() + Vector2d.POSITIVE_XY)
} else {