]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
changed order of tests in deciding whether to do culling on a bmodel entity to fix...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 1 Dec 2004 07:45:40 +0000 (07:45 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 1 Dec 2004 07:45:40 +0000 (07:45 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4807 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 999be85c281b3d1b17d7b579caf084c11fb84396..996aedeb2cc3674092601abd8a71cf9c85df7ef4 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -649,7 +649,7 @@ void SV_MarkWriteEntityStateToClient(entity_state_t *s)
                        return;
                // always send world submodels, they don't generate much traffic
                // except in PROTOCOL_QUAKE where they hog bandwidth like crazy
-               else if (!(s->effects & EF_NODEPTHTEST) && (sv.protocol == PROTOCOL_QUAKE || !(isbmodel = (model = sv.models[s->modelindex]) != NULL && model->name[0] == '*')))
+               else if (!(s->effects & EF_NODEPTHTEST) && (!(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