Browse code

Don't know why this was using fEqual, those are integers...

Naram Qashat authored on 2021/04/05 20:38:47
Showing 1 changed files
... ...
@@ -65,7 +65,7 @@ void BIOS_ArcTan2()
65 65
 		res = (x >> 16) & 0x8000;
66 66
 	else if (!x)
67 67
 		res = ((y >> 16) & 0x8000) + 0x4000;
68
-	else if (std::abs(x) > std::abs(y) || (fEqual(std::abs(x), std::abs(y)) && !(x < 0 && y < 0)))
68
+	else if (std::abs(x) > std::abs(y) || (std::abs(x) == std::abs(y) && !(x < 0 && y < 0)))
69 69
 	{
70 70
 		reg[1].I = x;
71 71
 		reg[0].I = y << 14;