Starting inside a bbox no longer traps a player.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@118 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-09-04 17:42:25 +00:00
parent dfa6f1398a
commit 8784e698e3
1 changed files with 4 additions and 0 deletions

View File

@ -326,7 +326,11 @@ trace_t PM_PlayerTrace (vec3_t start, vec3_t end)
if (trace.allsolid)
trace.startsolid = true;
if (trace.startsolid)
{
if (!pmove.physents[i].model) //caught inside annother model
continue; //don't count this.
trace.fraction = 0;
}
// did we clip the move?
if (trace.fraction < total.fraction)