diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-08-03 20:18:30 +0300 |
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-08-03 20:18:30 +0300 |
| commit | e8dc5e27ce00ad911bf04b4aef4bbcf6190930b9 (patch) | |
| tree | 7f2d206b7f9032d49ee68899af890fb2bc08d1c6 /indra/newview/llagent.cpp | |
| parent | dc1a194507f18167fa10ab239d63f008a5ab323c (diff) | |
SL-15746 Turning right has priority over turning left
Does not cover other opposite-direction movements since only rotation is viewer handled.
Diffstat (limited to 'indra/newview/llagent.cpp')
| -rw-r--r-- | indra/newview/llagent.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 389448654a..41578f2328 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -713,6 +713,12 @@ void LLAgent::moveYaw(F32 mag, bool reset_view) setControlFlags(AGENT_CONTROL_YAW_NEG); } + U32 mask = AGENT_CONTROL_YAW_POS | AGENT_CONTROL_YAW_NEG; + if ((getControlFlags() & mask) == mask) + { + gAgentCamera.setYawKey(0); + } + if (reset_view) { gAgentCamera.resetView(); |
