From 408c366096ce42c6890bc0079cd914396549a71c Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 29 Sep 2012 14:50:54 +0000 Subject: [PATCH] in_sdl.c (IN_SendKeyEvents): fixed major thinko in SDLK_WORLD_xx change from yesterday's r746. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@748 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/in_sdl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Quake/in_sdl.c b/Quake/in_sdl.c index 4af9f838..1111c85c 100644 --- a/Quake/in_sdl.c +++ b/Quake/in_sdl.c @@ -575,12 +575,15 @@ void IN_SendKeyEvents (void) case 178: /* the '²' key */ sym = '~'; break; - } + default: /* If we are not directly handled and still above 255, * just force it to 0. kill unsupported international * characters, too. */ - if (sym > 255 || (sym >= SDLK_WORLD_0 && sym <= SDLK_WORLD_95)) - sym = 0; + if ((sym >= SDLK_WORLD_0 && sym <= SDLK_WORLD_95) || + sym > 255) + sym = 0; + break; + } Key_Event (sym, state); break;