SL-15746 Turning right has priority over turning left
Does not cover other opposite-direction movements since only rotation is viewer handled.meow-7.2.2
parent
dc1a194507
commit
e8dc5e27ce
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -3333,6 +3333,13 @@ void send_agent_update(BOOL force_send, BOOL send_reliable)
|
|||
// trigger a control event.
|
||||
U32 control_flags = gAgent.getControlFlags();
|
||||
|
||||
// Rotation into both directions should cancel out
|
||||
U32 mask = AGENT_CONTROL_YAW_POS | AGENT_CONTROL_YAW_NEG;
|
||||
if ((control_flags & mask) == mask)
|
||||
{
|
||||
control_flags &= ~mask;
|
||||
}
|
||||
|
||||
MASK key_mask = gKeyboard->currentMask(TRUE);
|
||||
|
||||
if (key_mask & MASK_ALT || key_mask & MASK_CONTROL)
|
||||
|
|
|
|||
Loading…
Reference in New Issue