Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes unused-but-set gcc warnings
This commit is contained in:
parent
1ea7ab1f42
commit
23f6fd1633
85 changed files with 246 additions and 496 deletions
|
@ -382,18 +382,6 @@ void AAS_Accelerate(vec3_t velocity, float frametime, vec3_t wishdir, float wish
|
|||
}
|
||||
} //end of the function AAS_Accelerate
|
||||
//===========================================================================
|
||||
//
|
||||
// Parameter: -
|
||||
// Returns: -
|
||||
// Changes Globals: -
|
||||
//===========================================================================
|
||||
void AAS_AirControl(vec3_t start, vec3_t end, vec3_t velocity, vec3_t cmdmove)
|
||||
{
|
||||
vec3_t dir;
|
||||
|
||||
VectorSubtract(end, start, dir);
|
||||
} //end of the function AAS_AirControl
|
||||
//===========================================================================
|
||||
// applies ground friction to the given velocity
|
||||
//
|
||||
// Parameter: -
|
||||
|
@ -518,7 +506,8 @@ int AAS_ClientMovementPrediction(struct aas_clientmove_s *move,
|
|||
float phys_maxstep, phys_maxsteepness, phys_jumpvel, friction;
|
||||
float gravity, delta, maxvel, wishspeed, accelerate;
|
||||
//float velchange, newvel;
|
||||
int n, i, j, pc, step, swimming, ax, crouch, event, jump_frame, areanum;
|
||||
//int ax;
|
||||
int n, i, j, pc, step, swimming, crouch, event, jump_frame, areanum;
|
||||
int areas[20], numareas;
|
||||
vec3_t points[20];
|
||||
vec3_t org, end, feet, start, stepend, lastorg, wishdir;
|
||||
|
@ -574,7 +563,7 @@ int AAS_ClientMovementPrediction(struct aas_clientmove_s *move,
|
|||
//apply command movement
|
||||
if (n < cmdframes)
|
||||
{
|
||||
ax = 0;
|
||||
//ax = 0;
|
||||
maxvel = phys_maxwalkvelocity;
|
||||
accelerate = phys_airaccelerate;
|
||||
VectorCopy(cmdmove, wishdir);
|
||||
|
@ -598,13 +587,13 @@ int AAS_ClientMovementPrediction(struct aas_clientmove_s *move,
|
|||
{
|
||||
accelerate = phys_walkaccelerate;
|
||||
} //end else
|
||||
ax = 2;
|
||||
//ax = 2;
|
||||
} //end if
|
||||
if (swimming)
|
||||
{
|
||||
maxvel = phys_maxswimvelocity;
|
||||
accelerate = phys_swimaccelerate;
|
||||
ax = 3;
|
||||
//ax = 3;
|
||||
} //end if
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue