Module dpmodel: Change committed
havoc at icculus.org
havoc at icculus.org
Sat Nov 29 15:21:08 EST 2003
Commiter : havoc
CVSROOT : /cvs/cvsroot/twilight
Module : dpmodel
Commit time: 2003-11-29 20:21:08 UTC
Log message:
fix a very bad bug in parsing attachments (wrote to angles[3-6] when it should have written to angles[0-3])
Modified files:
dpmodel.c
------=MIME.e18232002768df0997060949f6650b77
Content-Type: text/plain; name="dpmodel.20031129.202108.havoc.diff"
Content-Disposition: attachment; filename="dpmodel.20031129.202108.havoc.diff"
Content-Transfer-Encoding: 8bit
Index: dpmodel/dpmodel.c
diff -u dpmodel/dpmodel.c:1.2 dpmodel/dpmodel.c:1.3
--- dpmodel/dpmodel.c:1.2 Wed Oct 23 22:57:31 2002
+++ dpmodel/dpmodel.c Sat Nov 29 15:20:58 2003
@@ -1072,7 +1072,7 @@
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]);
More information about the twilight-commits
mailing list