================= BindingIDFromName ================= */
| 6857 | ================= |
| 6858 | */ |
| 6859 | int BindingIDFromName( const char *name ) { |
| 6860 | size_t i; |
| 6861 | |
| 6862 | // iterate each command, set its default binding |
| 6863 | for ( i = 0; i < g_bindCount; i++ ) { |
| 6864 | if ( !Q_stricmp( name, g_bindCommands[i] ) ) |
| 6865 | return i; |
| 6866 | } |
| 6867 | return -1; |
| 6868 | } |
| 6869 | |
| 6870 | char g_nameBind[96]; |
| 6871 |
no test coverage detected