From: havoc Date: Tue, 14 Sep 2004 22:57:23 +0000 (+0000) Subject: fixed totally mixed up vis culling (as a result of botched bmodel vis handling -... X-Git-Tag: xonotic-v0.1.0preview~5604 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3bd09867d9c573873debc4d2044cfb02728a4ddf;p=xonotic%2Fdarkplaces.git fixed totally mixed up vis culling (as a result of botched bmodel vis handling - oops) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4500 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index b8c14c72..7aa15301 100644 --- a/sv_main.c +++ b/sv_main.c @@ -947,7 +947,6 @@ void SV_MarkWriteEntityStateToClient(entity_state_t *s) // LordHavoc: only send entities with a model or important effects if (!s->modelindex && s->specialvisibilityradius == 0) return; - isbmodel = (model = sv.models[s->modelindex]) == NULL || model->name[0] != '*'; if (s->tagentity) { // tag attached entities simply check their parent @@ -958,7 +957,8 @@ void SV_MarkWriteEntityStateToClient(entity_state_t *s) return; } // always send world submodels, they don't generate much traffic - else if (!isbmodel || sv.protocol == PROTOCOL_QUAKE) + // 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) { Mod_CheckLoaded(model); // entity has survived every check so far, check if visible