mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Remove superfluous switch statement
This commit is contained in:
parent
089a1cd53f
commit
1570baee4d
1 changed files with 0 additions and 26 deletions
|
@ -223,32 +223,6 @@ extern int keydown[];
|
|||
qboolean
|
||||
Field_Key(menufield_s *f, int key)
|
||||
{
|
||||
/*
|
||||
* Ignore keypad in field to prevent duplicate
|
||||
* entries through key presses processed as a
|
||||
* normal char event and additionally as key
|
||||
* event.
|
||||
*/
|
||||
switch (key)
|
||||
{
|
||||
case K_KP_SLASH:
|
||||
case K_KP_MINUS:
|
||||
case K_KP_PLUS:
|
||||
case K_KP_HOME:
|
||||
case K_KP_UPARROW:
|
||||
case K_KP_PGUP:
|
||||
case K_KP_LEFTARROW:
|
||||
case K_KP_5:
|
||||
case K_KP_RIGHTARROW:
|
||||
case K_KP_END:
|
||||
case K_KP_DOWNARROW:
|
||||
case K_KP_PGDN:
|
||||
case K_KP_INS:
|
||||
case K_KP_DEL:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (key > 127)
|
||||
{
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue