mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 12:21:19 +00:00
Remove P_GetZAtf (it didn't seem to work right anyway)
This commit is contained in:
parent
485f671f23
commit
b121bcca68
2 changed files with 0 additions and 19 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue