1
0
Fork 0
forked from fte/fteqw

sync pmove stuff again

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2338 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2006-07-01 11:57:24 +00:00
parent 997fa53005
commit f51b6bbff6

View file

@ -269,7 +269,7 @@ int PM_StepSlideMove (qboolean in_air)
if (!(blocked & BLOCKED_STEP))
return blocked;
org = (pmove.velocity < 0) ? pmove.origin : original; // cryptic, eh?
org = (originalvel[2] < 0) ? pmove.origin : original;
VectorCopy (org, dest);
dest[2] -= pm_stepheight;
trace = PM_PlayerTrace (org, dest);
@ -298,6 +298,9 @@ int PM_StepSlideMove (qboolean in_air)
VectorCopy (trace.endpos, pmove.origin);
}
if (in_air && originalvel[2] < 0)
pmove.velocity[2] = 0;
PM_SlideMove ();
// press down the stepheight