mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-14 16:01:46 +00:00
pmove: code cleanup
This commit is contained in:
parent
5440d6b94a
commit
5030d9d046
1 changed files with 5 additions and 4 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue