pmove: code cleanup

This commit is contained in:
Denis Pauk 2025-01-08 23:23:51 +02:00
parent 5440d6b94a
commit 5030d9d046

View file

@ -408,9 +408,6 @@ PM_AirAccelerate(vec3_t wishdir, float wishspeed, float accel)
static void static void
PM_AddCurrents(vec3_t wishvel) PM_AddCurrents(vec3_t wishvel)
{ {
vec3_t v;
float s;
/* account for ladders */ /* account for ladders */
if (pml.ladder && (fabs(pml.velocity[2]) <= 200)) if (pml.ladder && (fabs(pml.velocity[2]) <= 200))
{ {
@ -458,6 +455,9 @@ PM_AddCurrents(vec3_t wishvel)
/* add water currents */ /* add water currents */
if (pm->watertype & MASK_CURRENT) if (pm->watertype & MASK_CURRENT)
{ {
vec3_t v;
float s;
VectorClear(v); VectorClear(v);
if (pm->watertype & CONTENTS_CURRENT_0) if (pm->watertype & CONTENTS_CURRENT_0)
@ -503,6 +503,8 @@ PM_AddCurrents(vec3_t wishvel)
/* add conveyor belt velocities */ /* add conveyor belt velocities */
if (pm->groundentity) if (pm->groundentity)
{ {
vec3_t v;
VectorClear(v); VectorClear(v);
if (pml.groundcontents & CONTENTS_CURRENT_0) if (pml.groundcontents & CONTENTS_CURRENT_0)
@ -1491,4 +1493,3 @@ Pmove(pmove_t *pmove)
PM_SnapPosition(); PM_SnapPosition();
} }