]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_main.c
changed order of tests in deciding whether to do culling on a bmodel entity to fix...
[xonotic/darkplaces.git] / 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