From b427932c346ecd988efa3d1229655c945ca9a7a0 Mon Sep 17 00:00:00 2001 From: Shariq Shah Date: Thu, 16 Jan 2020 16:40:21 +1100 Subject: [PATCH] Removed unused parameter --- src/common/version.h | 2 +- src/game/bounding_volumes.c | 2 +- src/game/bounding_volumes.h | 2 +- src/game/player.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/version.h b/src/common/version.h index 5fd807e..7ef4fbc 100755 --- a/src/common/version.h +++ b/src/common/version.h @@ -4,7 +4,7 @@ /* Auto generated version file. DO NOT MODIFY */ #define SYMMETRY_VERSION_MAJOR 0 #define SYMMETRY_VERSION_MINOR 1 -#define SYMMETRY_VERSION_REVISION 308 +#define SYMMETRY_VERSION_REVISION 309 #define SYMMETRY_VERSION_BRANCH "dev" #endif \ No newline at end of file diff --git a/src/game/bounding_volumes.c b/src/game/bounding_volumes.c index 716c748..e49d67e 100755 --- a/src/game/bounding_volumes.c +++ b/src/game/bounding_volumes.c @@ -392,7 +392,7 @@ bool bv_point_inside_bounding_box(struct Bounding_Box* box, vec3 point) return true; } -vec3 bv_bounding_box_normal_from_intersection_point(struct Bounding_Box* box, struct Ray* ray, vec3 intersection_point) +vec3 bv_bounding_box_normal_from_intersection_point(struct Bounding_Box* box, vec3 intersection_point) { vec3 center = { (box->max.x + box->min.x) * 0.5f, (box->max.y + box->min.y) * 0.5f, diff --git a/src/game/bounding_volumes.h b/src/game/bounding_volumes.h index 6bdf621..26960ce 100755 --- a/src/game/bounding_volumes.h +++ b/src/game/bounding_volumes.h @@ -61,6 +61,6 @@ float bv_distance_ray_plane(struct Ray* ray, Plane* plane); void bv_bounding_box_vertices_get(struct Bounding_Box* box, vec3 out_vertices[8]); void bv_bounding_box_vertices_get_line_visualization(struct Bounding_Box* bounding_box, vec3 out_vertices[24]); float bv_distance_ray_bounding_box(struct Ray* ray, struct Bounding_Box* box); -vec3 bv_bounding_box_normal_from_intersection_point(struct Bounding_Box* box, struct Ray* ray, vec3 intersection_point); +vec3 bv_bounding_box_normal_from_intersection_point(struct Bounding_Box* box, vec3 intersection_point); #endif diff --git a/src/game/player.c b/src/game/player.c index 9e5346b..cbf3586 100755 --- a/src/game/player.c +++ b/src/game/player.c @@ -204,7 +204,7 @@ void player_update(struct Player* player, struct Scene* scene, float dt) vec3_add(&intersection_point, &intersection_point, &forward_ray.origin); struct Bounding_Box* box = &colliding_entity->derived_bounding_box; - vec3 normal = bv_bounding_box_normal_from_intersection_point(box, &forward_ray, intersection_point); + vec3 normal = bv_bounding_box_normal_from_intersection_point(box, intersection_point); struct Ray normal_ray; normal_ray.origin = intersection_point;