From: divverent Date: Sun, 4 Dec 2011 14:48:17 +0000 (+0000) Subject: we now no longer need the auto RENDER_EXTERIORMODEL hack X-Git-Tag: xonotic-v0.6.0~126 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=661db48d6874ee483de0871b6d3d29e55c42fd56;p=xonotic%2Fdarkplaces.git we now no longer need the auto RENDER_EXTERIORMODEL hack git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11596 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=6fe7076d94594ed5e1b4a85a640d73d693ac58e3 --- diff --git a/csprogs.c b/csprogs.c index a99c469b..f4ddce2c 100644 --- a/csprogs.c +++ b/csprogs.c @@ -375,28 +375,6 @@ qboolean CSQC_AddRenderEdict(prvm_edict_t *ed, int edictnum) if(renderflags & RF_ADDITIVE) entrender->flags |= RENDER_ADDITIVE; } - // walk attachments to find RENDER_EXTERIORMODEL status - { - prvm_edict_t *ent = ed; - int vn = CL_VM_GetViewEntity(); - int attachloop = 0; - for(;;) - { - if(attachloop >= 256) - break; - if(MAX_EDICTS + PRVM_NUM_FOR_EDICT(ent) == vn) - { - entrender->flags |= RENDER_EXTERIORMODEL; - break; - } - if (PRVM_clientedictedict(ent, tag_entity)) - ent = PRVM_EDICT_NUM(PRVM_clientedictedict(ent, tag_entity)); - else - break; - attachloop++; - } - } - c = (int)PRVM_clientedictfloat(ed, colormap); if (c <= 0) CL_SetEntityColormapColors(entrender, -1);