Fixed some things.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1232 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-08-14 11:06:37 +00:00
parent c6896ca186
commit a355262f11

View file

@ -545,9 +545,9 @@ void CS_ClipToLinks ( areanode_t *node, moveclip_t *clip )
return; return;
if (clip->passedict) if (clip->passedict)
{ {
if ((csqcedict_t*)PROG_TO_EDICT(svprogfuncs, touch->v->owner) == clip->passedict) if ((csqcedict_t*)PROG_TO_EDICT(csqcprogs, touch->v->owner) == clip->passedict)
continue; // don't clip against own missiles continue; // don't clip against own missiles
if ((csqcedict_t*)PROG_TO_EDICT(svprogfuncs, clip->passedict->v->owner) == touch) if ((csqcedict_t*)PROG_TO_EDICT(csqcprogs, clip->passedict->v->owner) == touch)
continue; // don't clip against owner continue; // don't clip against owner
} }
@ -2126,7 +2126,7 @@ static void PF_cs_findradius (progfuncs_t *prinst, struct globalvars_s *pr_globa
for (i=1 ; i<sv.num_edicts ; i++) for (i=1 ; i<sv.num_edicts ; i++)
{ {
ent = (void*)EDICT_NUM(svprogfuncs, i); ent = (void*)EDICT_NUM(prinst, i);
if (ent->isfree) if (ent->isfree)
continue; continue;
if (ent->v->solid == SOLID_NOT) if (ent->v->solid == SOLID_NOT)