From: lordhavoc Date: Thu, 21 Sep 2000 03:09:22 +0000 (+0000) Subject: disabled texcoord checks in alias models, due to CTF v_star bug X-Git-Tag: RELEASE_0_2_0_RC1~981 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e5a22d8e6fdbbc0f5d3099d2354dd26ade40d7d7;p=xonotic%2Fdarkplaces.git disabled texcoord checks in alias models, due to CTF v_star bug git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@39 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_alias.c b/model_alias.c index 44e716e3..d290c4b8 100644 --- a/model_alias.c +++ b/model_alias.c @@ -381,7 +381,7 @@ Mod_LoadAliasModel ================= */ #define BOUNDI(VALUE,MIN,MAX) if (VALUE < MIN || VALUE >= MAX) Host_Error("model %s has an invalid VALUE (%d exceeds %d - %d)\n", mod->name, VALUE, MIN, MAX); -#define BOUNDF(VALUE,MIN,MAX) if (VALUE < MIN || VALUE >= MAX) Host_Error("model %s has an invalid VALUE (%g exceeds %g - %g)\n", mod->name, VALUE, MIN, MAX); +#define BOUNDF(VALUE,MIN,MAX) if (VALUE < MIN || VALUE >= MAX) Host_Error("model %s has an invalid VALUE (%f exceeds %f - %f)\n", mod->name, VALUE, MIN, MAX); void Mod_LoadAliasModel (model_t *mod, void *buffer) { int i, j, version, numframes, size, start, end, total; @@ -499,10 +499,11 @@ void Mod_LoadAliasModel (model_t *mod, void *buffer) pouttexcoords[i*2] -= 0.5; pouttexcoords[(i+pheader->numverts)*2] -= 0.5; } - BOUNDF(pouttexcoords[i*2],0,1); - BOUNDF(pouttexcoords[i*2+1],0,1); - BOUNDF(pouttexcoords[(i+pheader->numverts)*2],0,1); - BOUNDF(pouttexcoords[(i+pheader->numverts)*2+1],0,1); + // LordHavoc: CTF's v_star.mdl failed these checks +// BOUNDF(pouttexcoords[i*2],0.0,1.0); +// BOUNDF(pouttexcoords[i*2+1],0.0,1.0); +// BOUNDF(pouttexcoords[(i+pheader->numverts)*2],0.0,1.0); +// BOUNDF(pouttexcoords[(i+pheader->numverts)*2+1],0.0,1.0); } // load triangle data