From de13f0e51541aa09cdba2579b02ab1db4ad58d60 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 20 Mar 2008 19:31:33 +0000 Subject: [PATCH] how did boxready survive? oh well git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8219 d7cf8633-e32d-0410-b094-e92efae38249 --- model_brush.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/model_brush.c b/model_brush.c index 30351660..6fba250c 100644 --- a/model_brush.c +++ b/model_brush.c @@ -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]); -- 2.39.2