try to fix hip2m5 stuck-in-floor bug.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4724 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-08-17 03:32:48 +00:00
parent 23866f0196
commit 7bc7cbeb05
1 changed files with 17 additions and 0 deletions

View File

@ -1114,6 +1114,23 @@ void PM_NudgePosition (void)
}
}
}
//be more aggresssive at moving up, to match NQ
for (z=0 ; z<movevars.stepheight ; z++)
{
for (x=0 ; x<3 ; x++)
{
for (y=0 ; y<3 ; y++)
{
pmove.origin[0] = base[0] + (sign[x] * 1.0/8);
pmove.origin[1] = base[1] + (sign[y] * 1.0/8);
pmove.origin[2] = base[2] + z;
if (PM_TestPlayerPosition (pmove.origin, false))
return;
}
}
}
if (pmove.safeorigin_known)
VectorCopy (pmove.safeorigin, pmove.origin);
else