Merge pull request #13 from shpuld/fix/flames-looking-wrong

This commit is contained in:
cypress 2023-09-05 15:30:26 -04:00 committed by GitHub
commit 56efc44b9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1947,9 +1947,9 @@ void *Mod_LoadAliasGroup (void * pin, maliasframedesc_t *frame)
for (int j = 0; j < pheader->numverts; j++) {
utrivertx_t * unsigned_vert = (utrivertx_t*)&(poseverts[posenum][j]);
poseverts[posenum][i].v[0] = unsigned_vert->v[0] - 128;
poseverts[posenum][i].v[1] = unsigned_vert->v[1] - 128;
poseverts[posenum][i].v[2] = unsigned_vert->v[2] - 128;
poseverts[posenum][j].v[0] = unsigned_vert->v[0] - 128;
poseverts[posenum][j].v[1] = unsigned_vert->v[1] - 128;
poseverts[posenum][j].v[2] = unsigned_vert->v[2] - 128;
}
posenum++;
@ -2539,6 +2539,7 @@ void Mod_LoadAliasModel (model_t *mod, void *buffer)
}
}
pheader->numposes = posenum;
mod->type = mod_alias;