mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-01 05:00:46 +00:00
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:
parent
23866f0196
commit
7bc7cbeb05
1 changed files with 17 additions and 0 deletions
|
@ -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)
|
if (pmove.safeorigin_known)
|
||||||
VectorCopy (pmove.safeorigin, pmove.origin);
|
VectorCopy (pmove.safeorigin, pmove.origin);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue