From 942af209a73991ad53704696be7d752b7107e52e Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 12 Jul 2009 15:01:18 +0000 Subject: [PATCH] Apparently it didn't compile. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3262 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidcocoa.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/gl/gl_vidcocoa.m b/engine/gl/gl_vidcocoa.m index 3723ceeef..d8e882759 100644 --- a/engine/gl/gl_vidcocoa.m +++ b/engine/gl/gl_vidcocoa.m @@ -418,8 +418,8 @@ int checkDepth(int d) { if ([event type] == NSKeyDown) { - int code = keyconv[[event keyCode]] - Key_Event(code, code, TRUE); + int code = keyconv[[event keyCode]]; + Key_Event(code, code>=128?0:code, TRUE); //printf("%d\n",[event keyCode]); return; } @@ -427,7 +427,7 @@ int checkDepth(int d) if ([event type] == NSKeyUp) { int code = keyconv[[event keyCode]]; - Key_Event(code, code, FALSE); + Key_Event(code, 0, FALSE); return; }