]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
how did boxready survive? oh well
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 20 Mar 2008 19:31:33 +0000 (19:31 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 20 Mar 2008 19:31:33 +0000 (19:31 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8219 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 303516604b9fc1b94a5aca134405bb846e7da9b6..6fba250c2581ff9a999f3be39d6b200014c0bcd2 100644 (file)
@@ -5699,7 +5699,6 @@ void Mod_Q3BSP_Load(model_t *mod, void *buffer, void *bufferend)
        mod = loadmodel;
        for (i = 0;i < loadmodel->brush.numsubmodels;i++)
        {
-               qboolean boxready;
                if (i > 0)
                {
                        char name[10];
@@ -5743,7 +5742,6 @@ void Mod_Q3BSP_Load(model_t *mod, void *buffer, void *bufferend)
                // because q3map2 sometimes lies (mostly to affect the lightgrid),
                // which can in turn mess up the farclip (as well as culling when
                // outside the level - an unimportant concern)
-               boxready = false;
 
                //printf("Editing model %d... BEFORE re-bounding: %f %f %f - %f %f %f\n", i, mod->normalmins[0], mod->normalmins[1], mod->normalmins[2], mod->normalmaxs[0], mod->normalmaxs[1], mod->normalmaxs[2]);
                for (j = 0;j < mod->nummodelsurfaces;j++)
@@ -5753,16 +5751,6 @@ void Mod_Q3BSP_Load(model_t *mod, void *buffer, void *bufferend)
                        int k;
                        if (!surface->num_vertices)
                                continue;
-                       if (!boxready)
-                       // (div0) do we REALLY want this? Above it says "enlarge the
-                       //        bounding box", but this completely regenerates this.
-                       //        Remove this part and the variable  to make it ACTUALLY
-                       //        enlarge the bbox.
-                       {
-                               VectorCopy(v, mod->normalmins);
-                               VectorCopy(v, mod->normalmaxs);
-                               boxready = true;
-                       }
                        for (k = 0;k < surface->num_vertices;k++, v += 3)
                        {
                                mod->normalmins[0] = min(mod->normalmins[0], v[0]);