Fixed model rendering bug (Reporded by Tig...)

This commit is contained in:
cholleme 2004-02-07 20:53:54 +00:00
parent ba974b9797
commit 01058f6eb5
2 changed files with 4 additions and 4 deletions

View file

@ -693,7 +693,7 @@ void Mod_LoadMd3Model (model_t *mod, void *buffer)
} /* for numsurf */ } /* for numsurf */
//calculate radius //calculate radius
mod->radius = RadiusFromBounds (mod->mins, mod->maxs); mod->radius = Mod_RadiusFromBounds (mod->mins, mod->maxs);
/* monster or player models only ? */ /* monster or player models only ? */
@ -1020,7 +1020,7 @@ void Mod_LoadTenebraeKeyframeModel (model_t *mod, void *buffer)
} /* for numsurf */ } /* for numsurf */
//calculate radius //calculate radius
mod->radius = RadiusFromBounds (mod->mins, mod->maxs); mod->radius = Mod_RadiusFromBounds (mod->mins, mod->maxs);
// //
// move the complete, relocatable alias model to the cache // move the complete, relocatable alias model to the cache

View file

@ -1252,7 +1252,7 @@ void Mod_LoadPlanes (lump_t *l)
RadiusFromBounds RadiusFromBounds
================= =================
*/ */
float RadiusFromBounds (vec3_t mins, vec3_t maxs) float Mod_RadiusFromBounds (vec3_t mins, vec3_t maxs)
{ {
int i; int i;
vec3_t corner; vec3_t corner;
@ -1687,7 +1687,7 @@ void Mod_LoadAliasModel (model_t *mod, void *buffer)
pheader->maxs[i] = mod->maxs[i]; pheader->maxs[i] = mod->maxs[i];
} }
mod->radius = RadiusFromBounds (mod->mins, mod->maxs); mod->radius = Mod_RadiusFromBounds (mod->mins, mod->maxs);
// //
// build the draw lists // build the draw lists