From: havoc Date: Mon, 11 Nov 2002 21:36:09 +0000 (+0000) Subject: thanks to Vic for pointing out the fact I should be using + 0.5f when dealing with... X-Git-Tag: RELEASE_0_2_0_RC1~71 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c59fd00b98a29e44bb5951d791f913d0aba1f0fa;p=xonotic%2Fdarkplaces.git thanks to Vic for pointing out the fact I should be using + 0.5f when dealing with the alias texcoords git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2620 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_alias.c b/model_alias.c index f67155bf..a704571e 100644 --- a/model_alias.c +++ b/model_alias.c @@ -409,8 +409,8 @@ void Mod_LoadAliasModel (model_t *mod, void *buffer) for (i = 0;i < numverts;i++) { vertonseam[i] = LittleLong(pinstverts[i].onseam); - vertst[i][0] = LittleLong(pinstverts[i].s) * scales; - vertst[i][1] = LittleLong(pinstverts[i].t) * scalet; + vertst[i][0] = (LittleLong(pinstverts[i].s) + 0.5) * scales; + vertst[i][1] = (LittleLong(pinstverts[i].t) + 0.5) * scalet; vertst[i+numverts][0] = vertst[i][0] + 0.5; vertst[i+numverts][1] = vertst[i][1]; vertusage[i] = 0;