From eb604d7e9869598a7516dd489234093567fd4969 Mon Sep 17 00:00:00 2001 From: CobaltXII Date: Tue, 1 Jan 2019 12:14:13 -0500 Subject: [PATCH] Inlined all hitbox_*_depth functions --- src/inc/hitbox.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inc/hitbox.hpp b/src/inc/hitbox.hpp index a76e5ef..26c5304 100644 --- a/src/inc/hitbox.hpp +++ b/src/inc/hitbox.hpp @@ -47,7 +47,7 @@ inline bool hitbox_intersect(hitbox a, hitbox b) #define eps 0.00128f -float hitbox_x_depth(hitbox a, hitbox b) +inline float hitbox_x_depth(hitbox a, hitbox b) { if (a.x + a.xr > b.x + b.xr) { @@ -61,7 +61,7 @@ float hitbox_x_depth(hitbox a, hitbox b) // Get the Y depth of two intersecting hitboxes. -float hitbox_y_depth(hitbox a, hitbox b) +inline float hitbox_y_depth(hitbox a, hitbox b) { if (a.y + a.yr > b.y + b.yr) { @@ -75,7 +75,7 @@ float hitbox_y_depth(hitbox a, hitbox b) // Get the Z depth of two intersecting hitboxes. -float hitbox_z_depth(hitbox a, hitbox b) +inline float hitbox_z_depth(hitbox a, hitbox b) { if (a.z + a.zr > b.z + b.zr) {