diff options
-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]}, |