From 7e2daed186e883d80cb954987459248dd41e5a19 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 16 Apr 2006 04:02:32 +0000 Subject: [PATCH] use entity bbox for network culling if model was not found (this allows dedicated servers to run properly without models installed) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6288 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sv_main.c b/sv_main.c index 764c51bf..7e2c391b 100644 --- a/sv_main.c +++ b/sv_main.c @@ -673,8 +673,9 @@ qboolean SV_PrepareEntityForSending (prvm_edict_t *ent, entity_state_t *cs, int } else { - VectorCopy(cs->origin, cullmins); - VectorCopy(cs->origin, cullmaxs); + // if there is no model (or it could not be loaded), use the physics box + VectorAdd(cs->origin, ent->fields.server->mins, cullmins); + VectorAdd(cs->origin, ent->fields.server->maxs, cullmaxs); } if (specialvisibilityradius) { -- 2.39.2