From a18ae32a5eb936fcb9c6b6a89e4a750f787ae919 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 3 Mar 2013 19:07:44 -0600 Subject: [PATCH] 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" --- code/client/cl_keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/client/cl_keys.c b/code/client/cl_keys.c index 539dd77a..9bfb7144 100644 --- a/code/client/cl_keys.c +++ b/code/client/cl_keys.c @@ -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