Misc patches

This commit is contained in:
Er2
2024-03-28 14:39:40 +03:00
parent c9b4449bac
commit b8c01e085f
119 changed files with 1414 additions and 794 deletions

View File

@@ -1709,6 +1709,7 @@ float Level::getSeenPercent(Vec3 vec, AABB aabb)
float aabbSizeZ = aabb.max.z - aabb.min.z;
// This shoots a bunch of rays from a point and checks if the rays hit something. Stuupiiiddd
// FIXME(Er2): clang-analyzer-security.FloatLoopCounter
for (float xi = 0.0f; xi <= 1.0f; xi += 1.0f / (1.0f + 2 * aabbSizeX))
{
for (float yi = 0.0f; yi <= 1.0f; yi += 1.0f / (1.0f + 2 * aabbSizeY))