]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_main.c
implemented DP_EF_NODEPTHTEST extension
[xonotic/darkplaces.git] / sv_main.c
index c79ee24d2be0429fd1337d2aa41b28f5dcc8498c..b0f4f2a2eb9a9fa642d4050465aa3341d9cd0f2e 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -624,7 +624,7 @@ void SV_MarkWriteEntityStateToClient(entity_state_t *s)
                }
                // always send world submodels, they don't generate much traffic
                // 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)
+               else if ((!(isbmodel = (model = sv.models[s->modelindex]) != NULL && model->name[0] == '*') && !(s->effects & EF_NODEPTHTEST)) || sv.protocol == PROTOCOL_QUAKE)
                {
                        Mod_CheckLoaded(model);
                        // entity has survived every check so far, check if visible