Bugfix in solving quadratic equation for FoV calculation

This commit is contained in:
timongentzsch 2021-10-04 17:48:16 +00:00 committed by Moses Turner
parent e5e8451a81
commit ba353e276d

View file

@ -65,7 +65,7 @@ math_solve_triangle(
/* Parts of the quadratic formula solution */
const double b = u + 1.0;
const double root = sqrt(b + 4 * u * v * v);
const double root = sqrt(b * b + 4 * u * v * v);
const double two_a = 2 * v;
/* The two possible solutions. */