mirror of
https://github.com/DarkPlacesEngine/dpmodel.git
synced 2025-04-24 15:11:22 +00:00
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:
parent
d8907778f7
commit
02e6ce7531
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue