From c59fd00b98a29e44bb5951d791f913d0aba1f0fa Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 11 Nov 2002 21:36:09 +0000 Subject: [PATCH] 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 --- model_alias.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2