From: havoc Date: Wed, 1 Dec 2004 07:45:40 +0000 (+0000) Subject: changed order of tests in deciding whether to do culling on a bmodel entity to fix... X-Git-Tag: xonotic-v0.1.0preview~5330 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fde3c6bb95867c5e547775c9ba4ad5a51533fd75;p=xonotic%2Fdarkplaces.git 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 --- 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