Fix camera glitch (#1031)

This commit is contained in:
Christian Semmler
2024-06-13 16:09:14 -04:00
committed by GitHub
parent e5d66d597d
commit dd1c11a933
4 changed files with 9 additions and 11 deletions

View File

@@ -183,9 +183,9 @@ inline int UnknownMx4DPointFloat::FUN_100040a0(Vector4& p_v, float p_f)
if (d1 + 1.0 > 0.00001) {
if (1.0 - d1 > 0.00001) {
double d = acos(d1);
sin(d);
d1 = sin((1.0 - p_f) * d) / sin(d);
d2 = sin(p_f * d) / sin(d);
double s = sin(d);
d1 = sin((1.0 - p_f) * d) / s;
d2 = sin(p_f * d) / s;
}
else {
d1 = 1.0 - p_f;