fix sigsegv
This commit is contained in:
parent
bcfb7bb2b4
commit
6fff3eeb37
1 changed files with 2 additions and 0 deletions
2
src/gl.c
2
src/gl.c
|
|
@ -156,6 +156,7 @@ void key(MwWidget handle, void* user, void* call){
|
|||
int k = *(int*)call;
|
||||
k = MilskoToQuakeKey(k);
|
||||
if(k == -0xdead) return;
|
||||
if(k & MwLLKeyMask) return;
|
||||
Key_Event(k, 1);
|
||||
}
|
||||
|
||||
|
|
@ -163,6 +164,7 @@ void keyrelease(MwWidget handle, void* user, void* call){
|
|||
int k = *(int*)call;
|
||||
k = MilskoToQuakeKey(k);
|
||||
if(k == -0xdead) return;
|
||||
if(k & MwLLKeyMask) return;
|
||||
Key_Event(k, 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue