diff options
author | Tim Angus <tim@ngus.net> | 2001-08-22 01:40:12 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2001-08-22 01:40:12 +0000 |
commit | afe568e607fd020563fc4e2acba45f9521cf1869 (patch) | |
tree | aa9ee23691fcb4f074667152fe7eab96242d5dc3 /src/game | |
parent | 63aa00f4ca28b3c4528721f79f1c08c7f1f97195 (diff) |
Fixed something I missed between 1.27->1.29
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/bg_slidemove.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/game/bg_slidemove.c b/src/game/bg_slidemove.c index c53d0fe0..972dea00 100644 --- a/src/game/bg_slidemove.c +++ b/src/game/bg_slidemove.c @@ -241,7 +241,7 @@ void PM_StepSlideMove( qboolean gravity ) { // float down_dist, up_dist; // vec3_t delta, delta2; vec3_t up, down; - float stepSize; + float stepSize; VectorCopy (pm->ps->origin, start_o); VectorCopy (pm->ps->velocity, start_v); @@ -267,7 +267,7 @@ void PM_StepSlideMove( qboolean gravity ) { up[2] += STEPSIZE; // test the player position if they were a stepheight higher - pm->trace (&trace, start_o, pm->mins, pm->maxs, up, pm->ps->clientNum, pm->tracemask); + pm->trace (&trace, start_o, pm->mins, pm->maxs, up, pm->ps->clientNum, pm->tracemask); if ( trace.allsolid ) { if ( pm->debugLevel ) { Com_Printf("%i:bend can't step\n", c_pmove); @@ -275,16 +275,16 @@ void PM_StepSlideMove( qboolean gravity ) { return; // can't step up } - stepSize = trace.endpos[2] - start_o[2]; + stepSize = trace.endpos[2] - start_o[2]; // try slidemove from this position - VectorCopy (trace.endpos, pm->ps->origin); + VectorCopy (trace.endpos, pm->ps->origin); VectorCopy (start_v, pm->ps->velocity); PM_SlideMove( gravity ); // push down the final amount VectorCopy (pm->ps->origin, down); - down[2] -= STEPSIZE; + down[2] -= stepSize; pm->trace (&trace, pm->ps->origin, pm->mins, pm->maxs, down, pm->ps->clientNum, pm->tracemask); if ( !trace.allsolid ) { VectorCopy (trace.endpos, pm->ps->origin); @@ -326,4 +326,3 @@ void PM_StepSlideMove( qboolean gravity ) { } } } - |