fixed the Z and 9 keys not being bindable on Linux

This commit is contained in:
myT 2018-01-18 17:38:45 +01:00
parent 24fac5557c
commit f1bbe75937
2 changed files with 4 additions and 2 deletions

View file

@ -6,6 +6,8 @@ chg: on Windows, a fatal error will move the early console window to the foregro
chg: com_hunkMegs doesn't have a maximum value anymore
a value too high would reset it and the engine might fail to load with the default value
fix: on Linux, the 'Z' and '9' keys could not be bound
fix: cl_allowDownload 1 failing on "connect" (error 10047 on Windows)
fix: cl_allowDownload 1 was using the current directory instead of fs_basepath

View file

@ -69,8 +69,8 @@ static int QuakeKeyFromSDLKey( SDL_Keysym key )
const SDL_Keycode sym = key.sym;
// these ranges map directly to ASCII chars
if ((sym >= SDLK_a && sym < SDLK_z) ||
(sym >= SDLK_0 && sym < SDLK_9))
if ((sym >= SDLK_a && sym <= SDLK_z) ||
(sym >= SDLK_0 && sym <= SDLK_9))
return (int)sym;
// F1 to F24