Crouch toggle rewrite - removed garbage.

This commit is contained in:
Siana Gearz
2012-01-12 06:35:42 +01:00
parent d2b2c501bc
commit 4feb69e342
2 changed files with 13 additions and 17 deletions

View File

@@ -1098,9 +1098,12 @@ bool LLAppViewer::mainLoop()
&& !gFocusMgr.focusLocked())
{
joystick->scanJoystick();
if(isCrouch)
gAgent.moveUp(-1);
gKeyboard->scanKeyboard();
if(isCrouch)
{
gAgent.moveUp(-1);
}
}
// Update state based on messages, user input, object idle.