If Lua disabled intermission emeralds, skip sounds

This commit is contained in:
spherallic 2023-04-19 20:17:50 +02:00
parent 6ff37b47d9
commit c2c430853c

View file

@ -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)
{