aboutsummaryrefslogtreecommitdiff
path: root/redist
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2017-03-08 00:34:00 -0500
committercnlohr <lohr85@gmail.com>2017-03-08 00:34:00 -0500
commitb960e4d04b49bee0f60a5b1d1199c256cfbc17d6 (patch)
treea182b8e66fc86ad3617451fcad1d7c646761681a /redist
parent394cbc465e776137834eea830038b43ea98f6268 (diff)
downloadlibsurvive-b960e4d04b49bee0f60a5b1d1199c256cfbc17d6.tar.gz
libsurvive-b960e4d04b49bee0f60a5b1d1199c256cfbc17d6.tar.bz2
apparently quat code had been wrong for quite some time. Luckily it was code that would rarely execute.
Diffstat (limited to 'redist')
-rw-r--r--redist/linmath.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/redist/linmath.c b/redist/linmath.c
index 157141f..1c5c25b 100644
--- a/redist/linmath.c
+++ b/redist/linmath.c
@@ -93,11 +93,6 @@ void quatsetnone(FLT * q)
q[0] = 1; q[1] = 0; q[2] = 0; q[3] = 0;
}
-void quatsetidentity(FLT * q)
-{
- q[0] = 1; q[1] = 0; q[2] = 0; q[3] = 1;
-}
-
void quatcopy(FLT * qout, const FLT * qin)
{
qout[0] = qin[0];
@@ -447,7 +442,7 @@ void quatfrom2vectors(FLT *q, const FLT *src, const FLT *dest)
// If dot == 1, vectors are the same
if (d >= 1.0f)
{
- quatsetidentity(q);
+ quatsetnone(q);
return;
}
if (d < (1e-6f - 1.0f))