Fix thunderdome cvar potentially being taken into !K_CanChangeRules contexts

This commit is contained in:
toaster 2025-09-14 22:36:04 +01:00
parent 8fcf835330
commit 867187c494

View file

@ -489,9 +489,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
if (special->fuse) // This box is respawning, but was broken very recently (see P_FuseThink)
{
// What was this box broken as?
if (cv_thunderdome.value)
K_StartItemRoulette(player, true);
else if (special->cvmem && !(special->flags2 & MF2_BOSSDEAD))
if (!K_ThunderDome() && special->cvmem && !(special->flags2 & MF2_BOSSDEAD))
K_StartItemRoulette(player, false);
else
K_StartItemRoulette(player, true);