wip: removing vec3 tls

This commit is contained in:
orng
2026-03-26 01:10:27 -05:00
parent c18e86944f
commit 7b021bc99d
62 changed files with 1070 additions and 1045 deletions

View File

@@ -121,9 +121,9 @@ int RandomLevelSource::getMinDistanceToEdge(int xxx, int zzz, int worldSize,
(xxx > (max - falloffStart) && xxx < (max + falloffStart))) {
Vec3* point = Vec3::newTemp(xxx, 0, zzz);
if (xxx > 0)
dist = point->distanceFromLine(topRight, bottomRight);
dist = point->distanceFromLine(*topRight, *bottomRight);
else
dist = point->distanceFromLine(topLeft, bottomLeft);
dist = point->distanceFromLine(*topLeft, *bottomLeft);
closest = dist;
}
@@ -132,9 +132,9 @@ int RandomLevelSource::getMinDistanceToEdge(int xxx, int zzz, int worldSize,
(zzz > (max - falloffStart) && zzz < (max + falloffStart))) {
Vec3* point = Vec3::newTemp(xxx, 0, zzz);
if (zzz > 0)
dist = point->distanceFromLine(bottomLeft, bottomRight);
dist = point->distanceFromLine(*bottomLeft, *bottomRight);
else
dist = point->distanceFromLine(topLeft, topRight);
dist = point->distanceFromLine(*topLeft, *topRight);
if (dist < closest) closest = dist;
}