Skip to content

Commit

Permalink
Fix Key_StringToKeynum to return lowercased ascii
Browse files Browse the repository at this point in the history
Fixes bind and unbind uppercase ascii and uppercase ascii in cl_consoleKeys.

keycodes.h states "normal keys should be passed as lowercased ascii"
  • Loading branch information
zturtleman committed Mar 4, 2013
1 parent db68f59 commit a18ae32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/client/cl_keys.c
Expand Up @@ -800,7 +800,7 @@ int Key_StringToKeynum( char *str ) {
return -1;
}
if ( !str[1] ) {
return str[0];
return tolower( str[0] );
}

// check for hex code
Expand Down

0 comments on commit a18ae32

Please sign in to comment.