mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 11:35:05 +08:00
engine: client: return NULL from LookupBinding on unknown bindings, like GoldSource
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user