world: copy paranoid check into QWSV code

Update the comment while I still remember what that was (probably) about.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2012-11-13 09:17:26 +10:30
parent d33296695c
commit ffd6dd4590
2 changed files with 11 additions and 1 deletions

View File

@ -299,7 +299,10 @@ SV_TouchLinks(edict_t *ent, areanode_t *node)
/* touch linked edicts */
for (l = node->trigger_edicts.next; l != &node->trigger_edicts; l = next) {
/* FIXME - Is this just paranoia? */
/*
* FIXME - Just paranoia? Check if this can really happen...
* (I think it was related to the E2M2 drawbridge bug)
*/
if (!l || !l->next)
Host_Error("%s: encountered NULL link", __func__);

View File

@ -362,6 +362,13 @@ SV_TouchLinks(edict_t *ent, areanode_t *node)
/* touch linked edicts */
for (l = node->trigger_edicts.next; l != &node->trigger_edicts; l = next) {
/*
* FIXME - Just paranoia? Check if this can really happen...
* (I think it was related to the E2M2 drawbridge bug)
*/
if (!l || !l->next)
SV_Error("%s: encountered NULL link", __func__);
next = l->next;
touch = EDICT_FROM_AREA(l);
if (touch == ent)