summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksymS ProductEngine <msavchenko@productengine.com>2012-08-16 01:25:50 +0300
committerMaksymS ProductEngine <msavchenko@productengine.com>2012-08-16 01:25:50 +0300
commit22561c0fc79bd9d645b5556790e9c270c06b31c1 (patch)
tree9b754d645111d3a592a0e81b4859bb5e9582aadf
parent1c4a3e2ef307afc02fac0fb21678cc5e8f7cc77d (diff)
MAINT-417 FIXED The agent_push_backward() updated with new check for reaction of key DOWN,
when avatar is in 'sitting mode' and view mode is 'mouselook'.
-rw-r--r--indra/newview/llviewerkeyboard.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llviewerkeyboard.cpp b/indra/newview/llviewerkeyboard.cpp
index 1aa9fd8a45..f5d3341c66 100644
--- a/indra/newview/llviewerkeyboard.cpp
+++ b/indra/newview/llviewerkeyboard.cpp
@@ -160,6 +160,11 @@ void agent_push_backward( EKeystate s )
camera_move_backward(s);
return;
}
+ else if (gAgentAvatarp->isSitting())
+ {
+ gAgentCamera.changeCameraToThirdPerson();
+ return;
+ }
agent_push_forwardbackward(s, -1, LLAgent::DOUBLETAP_BACKWARD);
}