aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/mathlib
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/public/mathlib')
-rw-r--r--mp/src/public/mathlib/vector.h2
-rw-r--r--mp/src/public/mathlib/vmatrix.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/mp/src/public/mathlib/vector.h b/mp/src/public/mathlib/vector.h
index c19261d7..a797da25 100644
--- a/mp/src/public/mathlib/vector.h
+++ b/mp/src/public/mathlib/vector.h
@@ -1187,7 +1187,7 @@ inline Vector &AllocTempVector()
}
ThreadPause();
}
- return s_vecTemp[nIndex & 0xffff];
+ return s_vecTemp[nIndex];
}
diff --git a/mp/src/public/mathlib/vmatrix.h b/mp/src/public/mathlib/vmatrix.h
index 2c536672..c18e4822 100644
--- a/mp/src/public/mathlib/vmatrix.h
+++ b/mp/src/public/mathlib/vmatrix.h
@@ -200,6 +200,9 @@ public:
// Setup a matrix for origin and angles.
void SetupMatrixOrgAngles( const Vector &origin, const QAngle &vAngles );
+ // Setup a matrix for angles and no translation.
+ void SetupMatrixAngles( const QAngle &vAngles );
+
// General inverse. This may fail so check the return!
bool InverseGeneral(VMatrix &vInverse) const;