diff options
author | Richard Linden <none@none> | 2010-08-12 15:26:53 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2010-08-12 15:26:53 -0700 |
commit | e5cfdd1cb8fdab09ef160967b55a75b06e4b2373 (patch) | |
tree | e23388cbb6674cff957391826609ccdbf8bb7089 | |
parent | 2c999688c4c792630865bd97c2b45ff886d9a26c (diff) |
fixed move hint always showing up immediately
-rw-r--r-- | indra/newview/llagent.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 0ff88f7451..aade16cc7b 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -233,8 +233,9 @@ LLAgent::LLAgent() : mControlsTakenPassedOnCount[i] = 0; } - mListener.reset(new LLAgentListener(*this)); + + mMoveTimer.stop(); } // Requires gSavedSettings to be initialized. @@ -243,6 +244,8 @@ LLAgent::LLAgent() : //----------------------------------------------------------------------------- void LLAgent::init() { + mMoveTimer.start(); + gSavedSettings.declareBOOL("SlowMotionAnimation", FALSE, "Declared in code", FALSE); gSavedSettings.getControl("SlowMotionAnimation")->getSignal()->connect(boost::bind(&handleSlowMotionAnimation, _2)); @@ -1550,7 +1553,7 @@ void LLAgent::propagate(const F32 dt) //----------------------------------------------------------------------------- void LLAgent::updateAgentPosition(const F32 dt, const F32 yaw_radians, const S32 mouse_x, const S32 mouse_y) { - if (mMoveTimer.getElapsedTimeF32() > gSavedSettings.getF32("NotMovingHintTimeout")) + if (mMoveTimer.getStarted() && mMoveTimer.getElapsedTimeF32() > gSavedSettings.getF32("NotMovingHintTimeout")) { LLFirstUse::notMoving(); } |