diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerjoystick.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/linden/indra/newview/llviewerjoystick.cpp b/linden/indra/newview/llviewerjoystick.cpp index 2e57843..2e4ce0b 100644 --- a/linden/indra/newview/llviewerjoystick.cpp +++ b/linden/indra/newview/llviewerjoystick.cpp | |||
@@ -386,7 +386,7 @@ void LLViewerJoystick::agentRotate(F32 pitch_inc, F32 yaw_inc) | |||
386 | } | 386 | } |
387 | 387 | ||
388 | // ----------------------------------------------------------------------------- | 388 | // ----------------------------------------------------------------------------- |
389 | void LLViewerJoystick::resetDeltas(S32 axis[], bool flycam_and_build_mode) | 389 | void LLViewerJoystick::resetDeltas(S32 axis[]) |
390 | { | 390 | { |
391 | for (U32 i = 0; i < 6; i++) | 391 | for (U32 i = 0; i < 6; i++) |
392 | { | 392 | { |
@@ -394,13 +394,6 @@ void LLViewerJoystick::resetDeltas(S32 axis[], bool flycam_and_build_mode) | |||
394 | sDelta[i] = 0.f; | 394 | sDelta[i] = 0.f; |
395 | } | 395 | } |
396 | 396 | ||
397 | if (flycam_and_build_mode) | ||
398 | { | ||
399 | sLastDelta[X_I] /= BUILDMODE_FLYCAM_T_SCALE; | ||
400 | sLastDelta[Y_I] /= BUILDMODE_FLYCAM_T_SCALE; | ||
401 | sLastDelta[Z_I] /= BUILDMODE_FLYCAM_T_SCALE; | ||
402 | } | ||
403 | |||
404 | sLastDelta[6] = sDelta[6] = 0.f; | 397 | sLastDelta[6] = sDelta[6] = 0.f; |
405 | mResetFlag = false; | 398 | mResetFlag = false; |
406 | } | 399 | } |
@@ -755,7 +748,7 @@ void LLViewerJoystick::moveFlycam(bool reset) | |||
755 | sFlycamRotation = LLViewerCamera::getInstance()->getQuaternion(); | 748 | sFlycamRotation = LLViewerCamera::getInstance()->getQuaternion(); |
756 | sFlycamZoom = LLViewerCamera::getInstance()->getView(); | 749 | sFlycamZoom = LLViewerCamera::getInstance()->getView(); |
757 | 750 | ||
758 | resetDeltas(axis, in_build_mode); | 751 | resetDeltas(axis); |
759 | 752 | ||
760 | return; | 753 | return; |
761 | } | 754 | } |