engine: client: return NULL from LookupBinding on unknown bindings, like GoldSource

This commit is contained in:
Alibek Omarov
2026-02-16 23:59:23 +05:00
parent dbbe75fec6
commit 2f8a0510b8

View File

@@ -313,7 +313,12 @@ Key_LookupBinding
*/
const char *Key_LookupBinding( const char *pBinding )
{
return Key_KeynumToString( Key_GetKey( pBinding ));
int key = Key_GetKey( pBinding );
if( key == -1 )
return NULL;
return Key_KeynumToString( key );
}
/*