diff options
author | Zack Middleton <zturtleman@gmail.com> | 2013-03-03 19:07:44 -0600 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-03-19 16:41:14 +0000 |
commit | ee010362b2bcefdd52141f19c22e3f3e32f21e4d (patch) | |
tree | ae117d15b313a8821dc492d3c5ff69a9267d9d7b | |
parent | 00404a70131729ff9fb3299603ca608ae92b14d6 (diff) |
Fix Key_StringToKeynum to return lowercased ascii
Fixes bind and unbind uppercase ascii and uppercase ascii in cl_consoleKeys.
keycodes.h states "normal keys should be passed as lowercased ascii"
-rw-r--r-- | src/client/cl_keys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/cl_keys.c b/src/client/cl_keys.c index e686366f..8654f563 100644 --- a/src/client/cl_keys.c +++ b/src/client/cl_keys.c @@ -752,7 +752,7 @@ int Key_StringToKeynum( char *str ) { return -1; } if ( !str[1] ) { - return str[0]; + return tolower( str[0] ); } // check for hex code |