diff options
author | nathan <nathansmith@disroot.org> | 2025-07-27 06:32:32 +0000 |
---|---|---|
committer | nathan <nathansmith@disroot.org> | 2025-07-27 06:32:32 +0000 |
commit | 68a46c5d8e92218622c93bd3b5356c25c079fef4 (patch) | |
tree | 291058d7d37fee76f4b2e6d697d8a682955840d2 | |
parent | 3025b1417a3fd990b320b5d28bf48b10920158c1 (diff) | |
download | FindThings-68a46c5d8e92218622c93bd3b5356c25c079fef4.tar.gz FindThings-68a46c5d8e92218622c93bd3b5356c25c079fef4.tar.bz2 FindThings-68a46c5d8e92218622c93bd3b5356c25c079fef4.zip |
OCD moment
-rw-r--r-- | src/world.c | 3 |
1 files changed, 1 insertions, 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]}, |