From 5fa249c14e8d367a18a5077b0e800b5c65a66cbf Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Wed, 4 Jan 2023 11:14:34 +0100 Subject: [PATCH] play a sound if the menu is activated with a different key than ESC (#862) * play a sound if the menu is activated with a different key than ESC * fix ternary operator --- src/g_game.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/g_game.c b/src/g_game.c index 2eec2e56..73eed625 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -951,6 +951,7 @@ boolean G_Responder(event_t* ev) ((ev->type == ev_keydown) || (ev->type == ev_mouseb_down) || (ev->type == ev_joyb_down)) ? + (!menuactive ? S_StartSound(NULL,sfx_swtchn) : true), M_StartControlPanel(), true : false; }