]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
we now no longer need the auto RENDER_EXTERIORMODEL hack
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 4 Dec 2011 14:48:17 +0000 (14:48 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 4 Dec 2011 17:21:30 +0000 (18:21 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11596 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6fe7076d94594ed5e1b4a85a640d73d693ac58e3

csprogs.c

index a99c469b1e84829e98e60da23d73337f6f5cdf60..f4ddce2cf5f27d3a65cf6ae6ad5eaf5b70ba273f 100644 (file)
--- 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);