Skip to content
Snippets Groups Projects
Commit 31d115bb authored by Alam Ed Arias's avatar Alam Ed Arias
Browse files

remove static keyword from p_slopes.c's functions

parent b64f45c8
No related branches found
No related tags found
No related merge requests found
...@@ -46,14 +46,14 @@ static pslope_t *slopelist = NULL; ...@@ -46,14 +46,14 @@ static pslope_t *slopelist = NULL;
static UINT16 slopecount = 0; static UINT16 slopecount = 0;
// Calculate line normal // Calculate line normal
static void P_CalculateSlopeNormal(pslope_t *slope) { 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
static void P_ReconfigureVertexSlope(pslope_t *slope) void P_ReconfigureVertexSlope(pslope_t *slope)
{ {
vector3_t vec1, vec2; vector3_t vec1, vec2;
...@@ -543,7 +543,7 @@ void P_SpawnSlope_Line(int linenum) ...@@ -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
// //
static pslope_t *P_NewVertexSlope(INT16 tag1, INT16 tag2, INT16 tag3, UINT8 flags) 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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment