Fix Freelook on Linux and add speed reset.

Should fix issue 7692.
Also fixes issue 7147.

I have no idea if these changes will affect Mac or Windows users, so please test.
This commit is contained in:
i418c 2014-10-16 19:57:11 -07:00
parent 536b8d6695
commit 0ac3e8c19f
1 changed files with 5 additions and 2 deletions

View File

@ -1150,10 +1150,10 @@ void CFrame::OnKeyDown(wxKeyEvent& event)
static float debugSpeed = 1.0f;
switch (event.GetKeyCode())
{
case '9':
case '(':
debugSpeed /= 2.0f;
break;
case '0':
case ')':
debugSpeed *= 2.0f;
break;
case 'W':
@ -1177,6 +1177,9 @@ void CFrame::OnKeyDown(wxKeyEvent& event)
case 'R':
VertexShaderManager::ResetView();
break;
case 'F':
debugSpeed = 1.0f;
break;
default:
break;
}