From 5b48cb1bd6c399350a89cfc681d3632347d7eedb Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 30 Oct 2011 19:47:07 +0000 Subject: [PATCH] Fix the bug where many kick sounds were started when pressing HOME or END in the user map selector. Now it's only one. git-svn-id: https://svn.eduke32.com/eduke32@2087 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/menus.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/polymer/eduke32/source/menus.c b/polymer/eduke32/source/menus.c index 022aa2b59..bd5fef7dd 100644 --- a/polymer/eduke32/source/menus.c +++ b/polymer/eduke32/source/menus.c @@ -2116,6 +2116,9 @@ cheat_for_port_credits: { if (currentlist) findfileshigh = seeker; else finddirshigh = seeker; + // clear keys, don't play the kick sound a dozen times! + KB_ClearKeyDown(sc_End); + KB_ClearKeyDown(sc_Home); S_PlaySound(KICK_HIT); } } @@ -2133,6 +2136,9 @@ cheat_for_port_credits: { if (currentlist) findfileshigh = seeker; else finddirshigh = seeker; + // clear keys, don't play the kick sound a dozen times! + KB_ClearKeyDown(sc_PgDn); + KB_ClearKeyDown(sc_PgUp); S_PlaySound(KICK_HIT); } }