]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed totally mixed up vis culling (as a result of botched bmodel vis handling -...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 14 Sep 2004 22:57:23 +0000 (22:57 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 14 Sep 2004 22:57:23 +0000 (22:57 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4500 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index b8c14c726c37f413423725405a717662a1cbc6ec..7aa15301af324b6d5e6c3f954dcde629bb2e0fc0 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -947,7 +947,6 @@ void SV_MarkWriteEntityStateToClient(entity_state_t *s)
                // LordHavoc: only send entities with a model or important effects
                if (!s->modelindex && s->specialvisibilityradius == 0)
                        return;
-               isbmodel = (model = sv.models[s->modelindex]) == NULL || model->name[0] != '*';
                if (s->tagentity)
                {
                        // tag attached entities simply check their parent
@@ -958,7 +957,8 @@ void SV_MarkWriteEntityStateToClient(entity_state_t *s)
                                return;
                }
                // always send world submodels, they don't generate much traffic
-               else if (!isbmodel || sv.protocol == PROTOCOL_QUAKE)
+               // except in PROTOCOL_QUAKE where they hog bandwidth like crazy
+               else if (!(isbmodel = (model = sv.models[s->modelindex]) != NULL && model->name[0] == '*') || sv.protocol == PROTOCOL_QUAKE)
                {
                        Mod_CheckLoaded(model);
                        // entity has survived every check so far, check if visible