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
This commit is contained in:
Ozkan Sezer 2012-09-29 14:50:54 +00:00
parent a3f4bdbbab
commit 408c366096

View file

@ -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;