From fde3c6bb95867c5e547775c9ba4ad5a51533fd75 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 1 Dec 2004 07:45:40 +0000 Subject: [PATCH] changed order of tests in deciding whether to do culling on a bmodel entity to fix uninitialized variable warnings (thanks Elric) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4807 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sv_main.c b/sv_main.c index 999be85c..996aedeb 100644 --- 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 -- 2.39.2