From 22dbc62c71c4a3e524be955a0fdd965df0125aa4 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 20 Jul 2001 05:18:46 +0000 Subject: [PATCH] damn magic numbers. sdl didn't like the key num shift either --- libs/video/targets/in_sdl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/video/targets/in_sdl.c b/libs/video/targets/in_sdl.c index abf886c9b..60f3ec1aa 100644 --- a/libs/video/targets/in_sdl.c +++ b/libs/video/targets/in_sdl.c @@ -248,9 +248,9 @@ IN_LL_SendKeyEvents (void) sym = SDLK_EQUALS; break; } - // If we're not directly handled and still above 255 + // If we're not directly handled and still >= K_NUM_KEYS // just force it to 0 - if (sym > 255) + if (sym >= K_NUM_KEYS) sym = 0; Key_Event (sym, -1, state); break;