From b121bcca683066bb36316b791383b446722c7832 Mon Sep 17 00:00:00 2001 From: RedEnchilada Date: Sat, 23 May 2015 12:23:24 -0500 Subject: [PATCH] Remove P_GetZAtf (it didn't seem to work right anyway) --- src/p_slopes.c | 14 -------------- src/p_slopes.h | 5 ----- 2 files changed, 19 deletions(-) diff --git a/src/p_slopes.c b/src/p_slopes.c index a1bfb01c3..ed9623e08 100644 --- a/src/p_slopes.c +++ b/src/p_slopes.c @@ -772,21 +772,7 @@ fixed_t P_GetZAt(pslope_t *slope, fixed_t x, fixed_t y) return slope->o.z + FixedMul(dist, slope->zdelta); } -#ifdef SPRINGCLEAN -// -// P_GetZAtf -// -// Returns the height of the sloped plane at (x, y) as a float -// -float P_GetZAtf(pslope_t *slope, float x, float y) -{ - //if (!slope) // SRB2CBTODO: keep this when done with debugging - // I_Error("P_GetZAtf: slope parameter is NULL"); - float dist = (x - slope->of.x) * slope->df.x + (y - slope->of.y) * slope->df.y; - return slope->of.z + (dist * slope->zdeltaf); -} -#endif // // P_QuantizeMomentumToSlope diff --git a/src/p_slopes.h b/src/p_slopes.h index 916690fe7..52988c18f 100644 --- a/src/p_slopes.h +++ b/src/p_slopes.h @@ -66,11 +66,6 @@ void P_CopySectorSlope(line_t *line); // Returns the height of the sloped plane at (x, y) as a fixed_t fixed_t P_GetZAt(pslope_t *slope, fixed_t x, fixed_t y); - -// Returns the height of the sloped plane at (x, y) as a float -float P_GetZAtf(pslope_t *slope, float x, float y); - - // Lots of physics-based bullshit void P_QuantizeMomentumToSlope(vector3_t *momentum, pslope_t *slope); void P_SlopeLaunch(mobj_t *mo);