mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-05 22:09:59 +03:00
physics: fix a lot of problems
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user