e2m2-stuck-on-plat bug fixed.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1447 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-10-07 16:21:54 +00:00
parent cb7acda2dd
commit 08de916232

View file

@ -254,11 +254,8 @@ qboolean PM_TestPlayerPosition (vec3_t pos)
continue; continue;
} }
#endif*/ #endif*/
/* hull = &pe->model->hulls[pmove.hullnum];
if (!hull->available || !hull->planes || !hull->clipnodes) PM_TransformedHullCheck (pe->model, pos, pos, &trace, pe->origin, pe->angles);
hull = &pe->model->hulls[1];
*/
pe->model->funcs.Trace(pe->model, 0, 0, pos, pos, player_mins, player_maxs, &trace);
if (trace.allsolid) if (trace.allsolid)
return false; //solid return false; //solid
} }
@ -301,6 +298,7 @@ trace_t PM_PlayerTrace (vec3_t start, vec3_t end)
{ {
pe = &pmove.physents[i]; pe = &pmove.physents[i];
if (!pe->model)
{ {
vec3_t mins, maxs; vec3_t mins, maxs;
VectorSubtract (pe->mins, player_maxs, mins); VectorSubtract (pe->mins, player_maxs, mins);