Fixed model rendering bug (Reporded by Tig...)
This commit is contained in:
parent
ba974b9797
commit
01058f6eb5
2 changed files with 4 additions and 4 deletions
4
gl_md3.c
4
gl_md3.c
|
@ -693,7 +693,7 @@ void Mod_LoadMd3Model (model_t *mod, void *buffer)
|
|||
} /* for numsurf */
|
||||
|
||||
//calculate radius
|
||||
mod->radius = RadiusFromBounds (mod->mins, mod->maxs);
|
||||
mod->radius = Mod_RadiusFromBounds (mod->mins, mod->maxs);
|
||||
|
||||
|
||||
/* monster or player models only ? */
|
||||
|
@ -1020,7 +1020,7 @@ void Mod_LoadTenebraeKeyframeModel (model_t *mod, void *buffer)
|
|||
} /* for numsurf */
|
||||
|
||||
//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
|
||||
|
|
|
@ -1252,7 +1252,7 @@ void Mod_LoadPlanes (lump_t *l)
|
|||
RadiusFromBounds
|
||||
=================
|
||||
*/
|
||||
float RadiusFromBounds (vec3_t mins, vec3_t maxs)
|
||||
float Mod_RadiusFromBounds (vec3_t mins, vec3_t maxs)
|
||||
{
|
||||
int i;
|
||||
vec3_t corner;
|
||||
|
@ -1687,7 +1687,7 @@ void Mod_LoadAliasModel (model_t *mod, void *buffer)
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue