fix issue with the menu not eating keypresses

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5035 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2016-12-21 15:47:18 +00:00
parent 8c0ac181d2
commit a7621b7bd8

View file

@ -2804,6 +2804,7 @@ qboolean MP_Keydown(int key, int unicode, unsigned int devid)
G_FLOAT(OFS_PARM0) = MP_TranslateFTEtoQCCodes(key);
G_FLOAT(OFS_PARM1) = unicode;
PR_ExecuteProgram(menu_world.progs, mp_keydown_function);
result = true; //doesn't have a return value, so if the menu is set up for key events, all events are considered eaten.
}
inmenuprogs--;
return result;