Is almost zero approximately zero?

This commit is contained in:
Inusaito Sayori
2014-08-22 06:01:45 -04:00
parent f721d935e4
commit 2c91210d6e

View File

@@ -579,7 +579,7 @@ void LLViewerJoystick::cursorSlide(F32 inc)
void LLViewerJoystick::cursorPush(F32 inc)
{
static F32 prev_inc = 0.f; // Smooth a little.
if (!is_approx_zero(0.001f))
if (!is_approx_zero(inc))
{
S32 x, y;
LLUI::getMousePositionScreen(&x, &y);