From 497deaf4774f6f2c478c52ff092a6eb85f2e0939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Mon, 9 Aug 2021 21:54:05 +0700 Subject: Disable NPC's footsteps and clean up sound loading https://todo.sr.ht/~cnx/blackshades/13 --- src/PhysicsMath.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/PhysicsMath.h') diff --git a/src/PhysicsMath.h b/src/PhysicsMath.h index 7eb13c5..c6c320c 100644 --- a/src/PhysicsMath.h +++ b/src/PhysicsMath.h @@ -452,7 +452,8 @@ inline Matrix3x3 Matrix3x3::Inverse(void) e31*e22*e13; - if (d == 0) d = 1; + if (abs(d) < 0.01f) + d = 1; return Matrix3x3( (e22*e33-e23*e32)/d, -- cgit v1.2.3