From ee010362b2bcefdd52141f19c22e3f3e32f21e4d Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 3 Mar 2013 19:07:44 -0600 Subject: 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" --- src/client/cl_keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit