mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 21:01:04 +00:00
Make internal slope functions static and remove from header
This commit is contained in:
parent
8cad9a6dc8
commit
6929b6fe4b
2 changed files with 3 additions and 8 deletions
|
@ -46,14 +46,14 @@ static pslope_t *slopelist = NULL;
|
||||||
static UINT16 slopecount = 0;
|
static UINT16 slopecount = 0;
|
||||||
|
|
||||||
// Calculate line normal
|
// Calculate line normal
|
||||||
void P_CalculateSlopeNormal(pslope_t *slope) {
|
static void P_CalculateSlopeNormal(pslope_t *slope) {
|
||||||
slope->normal.z = FINECOSINE(slope->zangle>>ANGLETOFINESHIFT);
|
slope->normal.z = FINECOSINE(slope->zangle>>ANGLETOFINESHIFT);
|
||||||
slope->normal.x = -FixedMul(FINESINE(slope->zangle>>ANGLETOFINESHIFT), slope->d.x);
|
slope->normal.x = -FixedMul(FINESINE(slope->zangle>>ANGLETOFINESHIFT), slope->d.x);
|
||||||
slope->normal.y = -FixedMul(FINESINE(slope->zangle>>ANGLETOFINESHIFT), slope->d.y);
|
slope->normal.y = -FixedMul(FINESINE(slope->zangle>>ANGLETOFINESHIFT), slope->d.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
// With a vertex slope that has its vertices set, configure relevant slope info
|
// With a vertex slope that has its vertices set, configure relevant slope info
|
||||||
void P_ReconfigureVertexSlope(pslope_t *slope)
|
static void P_ReconfigureVertexSlope(pslope_t *slope)
|
||||||
{
|
{
|
||||||
vector3_t vec1, vec2;
|
vector3_t vec1, vec2;
|
||||||
|
|
||||||
|
@ -543,7 +543,7 @@ void P_SpawnSlope_Line(int linenum)
|
||||||
//
|
//
|
||||||
// Creates a new slope from three vertices with the specified IDs
|
// Creates a new slope from three vertices with the specified IDs
|
||||||
//
|
//
|
||||||
pslope_t *P_NewVertexSlope(INT16 tag1, INT16 tag2, INT16 tag3, UINT8 flags)
|
static pslope_t *P_NewVertexSlope(INT16 tag1, INT16 tag2, INT16 tag3, UINT8 flags)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
mapthing_t *mt = mapthings;
|
mapthing_t *mt = mapthings;
|
||||||
|
|
|
@ -29,9 +29,6 @@
|
||||||
#define P_SLOPES_H__
|
#define P_SLOPES_H__
|
||||||
|
|
||||||
#ifdef ESLOPE
|
#ifdef ESLOPE
|
||||||
void P_CalculateSlopeNormal(pslope_t *slope);
|
|
||||||
void P_ReconfigureVertexSlope(pslope_t *slope);
|
|
||||||
|
|
||||||
void P_ResetDynamicSlopes(void);
|
void P_ResetDynamicSlopes(void);
|
||||||
void P_RunDynamicSlopes(void);
|
void P_RunDynamicSlopes(void);
|
||||||
// P_SpawnSlope_Line
|
// P_SpawnSlope_Line
|
||||||
|
@ -39,8 +36,6 @@ void P_RunDynamicSlopes(void);
|
||||||
// sectors.
|
// sectors.
|
||||||
void P_SpawnSlope_Line(int linenum);
|
void P_SpawnSlope_Line(int linenum);
|
||||||
|
|
||||||
pslope_t *P_NewVertexSlope(INT16 tag1, INT16 tag2, INT16 tag3, UINT8 flags);
|
|
||||||
|
|
||||||
#ifdef SPRINGCLEAN
|
#ifdef SPRINGCLEAN
|
||||||
// Loads just map objects that make slopes,
|
// Loads just map objects that make slopes,
|
||||||
// terrain affecting objects have to be spawned first
|
// terrain affecting objects have to be spawned first
|
||||||
|
|
Loading…
Reference in a new issue