From 01058f6eb5ce970ec4c91574e2a4ca791b473c91 Mon Sep 17 00:00:00 2001 From: cholleme <> Date: Sat, 7 Feb 2004 20:53:54 +0000 Subject: [PATCH] Fixed model rendering bug (Reporded by Tig...) --- gl_md3.c | 4 ++-- gl_model.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gl_md3.c b/gl_md3.c index 75fd67c..497e5e1 100644 --- a/gl_md3.c +++ b/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 diff --git a/gl_model.c b/gl_model.c index 1b74be0..086b87d 100644 --- a/gl_model.c +++ b/gl_model.c @@ -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