fix a very bad bug in parsing attachments (wrote to angles[3-6] when it should have written to angles[0-3])

git-svn-id: svn://svn.icculus.org/twilight/trunk/dpmodel@3668 d7cf8633-e32d-0410-b094-e92efae38249
This commit is contained in:
havoc 2003-11-29 20:20:58 +00:00
parent d8907778f7
commit 02e6ce7531

View file

@ -1072,7 +1072,7 @@ int sc_attachment(void)
if (i < 3)
origin[i] = atof(c);
else
angles[i] = atof(c) * (M_PI / 180.0);
angles[i - 3] = atof(c) * (M_PI / 180.0);
}
attachments[numattachments].matrix = computebonematrix(origin[0], origin[1], origin[2], angles[0], angles[1], angles[2]);