thanks to Vic for pointing out the fact I should be using + 0.5f when dealing with...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 11 Nov 2002 21:36:09 +0000 (21:36 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 11 Nov 2002 21:36:09 +0000 (21:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2620 d7cf8633-e32d-0410-b094-e92efae38249

model_alias.c

index f67155b..a704571 100644 (file)
@@ -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;