diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp index 1045fd747..1a7ad38c6 100644 --- a/src/game/client/components/menus_demo.cpp +++ b/src/game/client/components/menus_demo.cpp @@ -169,15 +169,18 @@ void CMenus::RenderDemoPlayer(CUIRect MainView) if(m_pClient->m_pGameConsole->IsClosed() && m_DemoPlayerState == DEMOPLAYER_NONE && g_Config.m_ClDemoKeyboardShortcuts) { // increase/decrease speed - if(Input()->KeyPress(KEY_MOUSE_WHEEL_UP) || Input()->KeyPress(KEY_UP)) + if(!Input()->KeyIsPressed(KEY_LSHIFT) && !Input()->KeyIsPressed(KEY_RSHIFT)) { - DemoPlayer()->SetSpeedIndex(+1); - LastSpeedChange = time_get(); - } - else if(Input()->KeyPress(KEY_MOUSE_WHEEL_DOWN) || Input()->KeyPress(KEY_DOWN)) - { - DemoPlayer()->SetSpeedIndex(-1); - LastSpeedChange = time_get(); + if(Input()->KeyPress(KEY_MOUSE_WHEEL_UP) || Input()->KeyPress(KEY_UP)) + { + DemoPlayer()->SetSpeedIndex(+1); + LastSpeedChange = time_get(); + } + else if(Input()->KeyPress(KEY_MOUSE_WHEEL_DOWN) || Input()->KeyPress(KEY_DOWN)) + { + DemoPlayer()->SetSpeedIndex(-1); + LastSpeedChange = time_get(); + } } // pause/unpause