From: havoc Date: Fri, 19 Aug 2005 00:21:25 +0000 (+0000) Subject: don't try to send entities with a NAN origin (this is strangely crashing the PVS... X-Git-Tag: xonotic-v0.1.0preview~4639 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=2bc3f23dc51ef982aa0dee575eb23f0cdddad15c;ds=sidebyside don't try to send entities with a NAN origin (this is strangely crashing the PVS check in q1bsp maps, hitting a bad node) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5598 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index 18042424..0f798ad8 100644 --- a/sv_main.c +++ b/sv_main.c @@ -483,7 +483,8 @@ void SV_PrepareEntitiesForSending(void) for (e = 1, ent = PRVM_NEXT_EDICT(prog->edicts);e < prog->num_edicts;e++, ent = PRVM_NEXT_EDICT(ent)) { sendentitiesindex[e] = NULL; - if (ent->priv.server->free) + // the 2 billion unit check is actually to detect NAN origins (we really don't want to send those) + if (ent->priv.server->free || VectorLength2(ent->fields.server->origin) > 2000000000.0*2000000000.0) continue; cs = defaultstate;