From 68a46c5d8e92218622c93bd3b5356c25c079fef4 Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 27 Jul 2025 00:32:32 -0600 Subject: OCD moment --- src/world.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/world.c b/src/world.c index 9e4e936..38ae7af 100644 --- a/src/world.c +++ b/src/world.c @@ -469,7 +469,6 @@ float getWorldHeightAtLocation(const World* world, float x, float y) { float mapX = (float)world->texture.width / world->size.x * x; float mapY = (float)world->texture.height / world->size.z * y; - RayCollision result; for (int yOffset = -1; yOffset < 2; ++yOffset) { @@ -493,7 +492,7 @@ float getWorldHeightAtLocation(const World* world, float x, float y) .direction = (Vector3){0.0, -1.0, 0.0} }; - result = GetRayCollisionTriangle( + RayCollision result = GetRayCollisionTriangle( ray, (Vector3){vertices[0], vertices[1], vertices[2]}, (Vector3){vertices[3], vertices[4], vertices[5]}, -- cgit v1.2.3