]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
I hope this fixes a md3 tag bug, but don't know
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 13 Aug 2003 02:08:11 +0000 (02:08 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 13 Aug 2003 02:08:11 +0000 (02:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3391 d7cf8633-e32d-0410-b094-e92efae38249

model_alias.c

index aacae600d9bad3c35a32fd5ea45b91a2144ef8a3..8e75b45ba415a2f84839d142005d39da7c73e37f 100644 (file)
@@ -870,7 +870,7 @@ void Mod_IDP3_Load(model_t *mod, void *buffer)
                for (j = 0;j < 3;j++)
                {
                        for (k = 0;k < 3;k++)
-                               loadmodel->alias.aliasdata_tags[i].matrix.m[j][k] = LittleFloat(pintag->rotationmatrix[j * 3 + k]);
+                               loadmodel->alias.aliasdata_tags[i].matrix.m[j][k] = LittleFloat(pintag->rotationmatrix[k * 3 + j]);
                        loadmodel->alias.aliasdata_tags[i].matrix.m[j][3] = LittleFloat(pintag->origin[j]);
                }
                //Con_Printf("model \"%s\" frame #%i tag #%i \"%s\"\n", loadmodel->name, i / loadmodel->alias.aliasnum_tags, i % loadmodel->alias.aliasnum_tags, loadmodel->alias.aliasdata_tags[i].name);