]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
use entity bbox for network culling if model was not found (this allows dedicated...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 16 Apr 2006 04:02:32 +0000 (04:02 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 16 Apr 2006 04:02:32 +0000 (04:02 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6288 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 764c51bff4a95c0943995bddb98279d33c18f375..7e2c391ba18b94fd9ca4aa460bd76199b9e22740 100644 (file)
--- 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)
        {