Revert SV_TouchLinks changes from fitzquake

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1484 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Eric Wasylishen 2017-08-28 02:15:03 +00:00
parent 73123e19cb
commit 94a4d55466

View file

@ -288,14 +288,6 @@ void SV_TouchLinks ( edict_t *ent, areanode_t *node )
// touch linked edicts
for (l = node->trigger_edicts.next ; l != &node->trigger_edicts ; l = next)
{
//johnfitz -- fixes a crash when a touch function deletes an entity which comes later in the list
if (!l)
{
Con_Printf ("SV_TouchLinks: null link\n");
break;
}
//johnfitz
next = l->next;
touch = EDICT_FROM_AREA(l);
if (touch == ent)
@ -317,14 +309,6 @@ void SV_TouchLinks ( edict_t *ent, areanode_t *node )
pr_global_struct->time = sv.time;
PR_ExecuteProgram (touch->v.touch);
//johnfitz -- the PR_ExecuteProgram above can alter the linked edicts -- fix from tyrquake
if (next != l->next && l->next)
{
Con_Printf ("SV_TouchLinks: next != l->next\n");
next = l->next;
}
//johnfitz
pr_global_struct->self = old_self;
pr_global_struct->other = old_other;
}