[client] minor nit: compare double to double const

This commit is contained in:
Geoffrey McRae 2021-01-15 08:49:56 +11:00
parent 8217d5efa5
commit 25d6d88adb

View File

@ -1067,7 +1067,7 @@ void handleMouseNormal(double ex, double ey)
g_cursor.delta.x += x; g_cursor.delta.x += x;
g_cursor.delta.y += y; g_cursor.delta.y += y;
if (fabs(g_cursor.delta.x) > 50 || fabs(g_cursor.delta.y) > 50) if (fabs(g_cursor.delta.x) > 50.0 || fabs(g_cursor.delta.y) > 50.0)
{ {
g_cursor.delta.x = 0; g_cursor.delta.x = 0;
g_cursor.delta.y = 0; g_cursor.delta.y = 0;