mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2024-11-23 16:10:09 +00:00
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:
parent
d33296695c
commit
ffd6dd4590
@ -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__);
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user