From c2c430853ccb47174281908f131f87a0059ac560 Mon Sep 17 00:00:00 2001 From: spherallic Date: Wed, 19 Apr 2023 20:17:50 +0200 Subject: [PATCH] If Lua disabled intermission emeralds, skip sounds --- src/y_inter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/y_inter.c b/src/y_inter.c index cfd1e106e..f0777add7 100644 --- a/src/y_inter.c +++ b/src/y_inter.c @@ -1133,9 +1133,10 @@ void Y_Ticker(void) } // emerald bounce - if (dedicated) + if (dedicated || !LUA_HudEnabled(hud_intermissionemeralds)) { // dedicated servers don't need this, especially since it crashes when stagefailed + // also skip this if Lua disabled intermission emeralds, so it doesn't play sounds } else if (intertic <= 1) {