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:
parent
702f89dbad
commit
e8b2cc11a9
1 changed files with 5 additions and 2 deletions
|
@ -3630,19 +3630,20 @@ void AddLinksToPmove ( areanode_t *node )
|
||||||
pmove.numphysent++;
|
pmove.numphysent++;
|
||||||
|
|
||||||
VectorCopy (check->v->origin, pe->origin);
|
VectorCopy (check->v->origin, pe->origin);
|
||||||
VectorCopy (check->v->angles, pe->angles);
|
|
||||||
pe->info = NUM_FOR_EDICT(svprogfuncs, check);
|
pe->info = NUM_FOR_EDICT(svprogfuncs, check);
|
||||||
if (check->v->solid == SOLID_BSP)
|
if (check->v->solid == SOLID_BSP)
|
||||||
{
|
{
|
||||||
if(progstype != PROG_H2)
|
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->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)];
|
pe->model = sv.models[(int)(check->v->modelindex)];
|
||||||
|
VectorCopy (check->v->angles, pe->angles);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pe->model = NULL;
|
pe->model = NULL;
|
||||||
VectorCopy (check->v->mins, pe->mins);
|
VectorCopy (check->v->mins, pe->mins);
|
||||||
VectorCopy (check->v->maxs, pe->maxs);
|
VectorCopy (check->v->maxs, pe->maxs);
|
||||||
|
VectorClear (pe->angles);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3724,10 +3725,12 @@ void AddAllEntsToPmove (void)
|
||||||
pe = &pmove.physents[pmove.numphysent];
|
pe = &pmove.physents[pmove.numphysent];
|
||||||
|
|
||||||
VectorCopy (check->v->origin, pe->origin);
|
VectorCopy (check->v->origin, pe->origin);
|
||||||
VectorCopy (check->v->angles, pe->angles);
|
|
||||||
pmove.physents[pmove.numphysent].info = e;
|
pmove.physents[pmove.numphysent].info = e;
|
||||||
if (check->v->solid == SOLID_BSP)
|
if (check->v->solid == SOLID_BSP)
|
||||||
|
{
|
||||||
|
VectorCopy (check->v->angles, pe->angles);
|
||||||
pe->model = sv.models[(int)(check->v->modelindex)];
|
pe->model = sv.models[(int)(check->v->modelindex)];
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pe->angles[0] = pe->angles[1] = pe->angles[2] = 0;
|
pe->angles[0] = pe->angles[1] = pe->angles[2] = 0;
|
||||||
|
|
Loading…
Reference in a new issue