physics: fix a lot of problems

This commit is contained in:
nillerusr
2021-10-23 14:41:59 +03:00
parent cb04a1e451
commit dc2be1dcb4
31 changed files with 104 additions and 54 deletions

View File

@@ -652,6 +652,9 @@ void CConsolePanel::OnTextChanged(Panel *panel)
// see if they've hit the tilde key (which opens & closes the console)
int len = Q_strlen(m_szPartialText);
if( !len )
return;
bool hitTilde = ( m_szPartialText[len - 1] == '~' || m_szPartialText[len - 1] == '`' ) ? true : false;
bool altKeyDown = ( vgui::input()->IsKeyDown( KEY_LALT ) || vgui::input()->IsKeyDown( KEY_RALT ) ) ? true : false;
@@ -1253,4 +1256,4 @@ void CConsoleDialog::OnKeyCodePressed( vgui::KeyCode code )
{
BaseClass::OnKeyCodePressed(code);
}
}
}