diff --git a/src/p_slopes.c b/src/p_slopes.c index a1bfb01c3a2c78d36a5adad0ae6d75ac81fa4db5..ed9623e087f9a37db726b6150378f500c8844f8b 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 916690fe74c5b321e4db7904b8dbde0cc714fccf..52988c18ff44064cb94a83a0603ec510899bec7d 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);