forked from fte/fteqw
1
0
Fork 0

I'm paranoid.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1444 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-10-07 02:11:35 +00:00
parent 702f89dbad
commit e8b2cc11a9
1 changed files with 5 additions and 2 deletions

View File

@ -3630,19 +3630,20 @@ void AddLinksToPmove ( areanode_t *node )
pmove.numphysent++;
VectorCopy (check->v->origin, pe->origin);
VectorCopy (check->v->angles, pe->angles);
pe->info = NUM_FOR_EDICT(svprogfuncs, check);
if (check->v->solid == SOLID_BSP)
{
if(progstype != PROG_H2)
pe->angles[0]*=-1; //quake is wierd. I guess someone fixed it hexen2... or my code is buggy or something...
pe->model = sv.models[(int)(check->v->modelindex)];
VectorCopy (check->v->angles, pe->angles);
}
else
{
pe->model = NULL;
VectorCopy (check->v->mins, pe->mins);
VectorCopy (check->v->maxs, pe->maxs);
VectorClear (pe->angles);
}
}
}
@ -3724,10 +3725,12 @@ void AddAllEntsToPmove (void)
pe = &pmove.physents[pmove.numphysent];
VectorCopy (check->v->origin, pe->origin);
VectorCopy (check->v->angles, pe->angles);
pmove.physents[pmove.numphysent].info = e;
if (check->v->solid == SOLID_BSP)
{
VectorCopy (check->v->angles, pe->angles);
pe->model = sv.models[(int)(check->v->modelindex)];
}
else
{
pe->angles[0] = pe->angles[1] = pe->angles[2] = 0;