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
This commit is contained in:
helixhorned 2011-10-30 19:47:07 +00:00
parent d37ef521fb
commit 5b48cb1bd6

View file

@ -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);
}
}