summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterregionrestarting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterregionrestarting.cpp')
-rw-r--r--indra/newview/llfloaterregionrestarting.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llfloaterregionrestarting.cpp b/indra/newview/llfloaterregionrestarting.cpp
index 94c805205a..95d4265bb4 100644
--- a/indra/newview/llfloaterregionrestarting.cpp
+++ b/indra/newview/llfloaterregionrestarting.cpp
@@ -100,9 +100,10 @@ void LLFloaterRegionRestarting::draw()
{
LLFloater::draw();
- const F32 SHAKE_INTERVAL = 0.04;
+ const F32 SHAKE_INTERVAL = 0.025;
const F32 SHAKE_TOTAL_DURATION = 1.8; // the length of the default alert tone for this
const F32 SHAKE_INITIAL_MAGNITUDE = 1.5;
+ const F32 SHAKE_HORIZONTAL_BIAS = 0.25;
F32 time_shaking;
if(SHAKE_START == sShakeState)
@@ -120,7 +121,7 @@ void LLFloaterRegionRestarting::draw()
switch(sShakeState)
{
case SHAKE_LEFT:
- gAgentCamera.setPanLeftKey(mShakeMagnitude);
+ gAgentCamera.setPanLeftKey(mShakeMagnitude * SHAKE_HORIZONTAL_BIAS);
sShakeState = SHAKE_UP;
break;
@@ -130,7 +131,7 @@ void LLFloaterRegionRestarting::draw()
break;
case SHAKE_RIGHT:
- gAgentCamera.setPanRightKey(mShakeMagnitude);
+ gAgentCamera.setPanRightKey(mShakeMagnitude * SHAKE_HORIZONTAL_BIAS);
sShakeState = SHAKE_DOWN;
break;