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) if (special->fuse) // This box is respawning, but was broken very recently (see P_FuseThink)
{ {
// What was this box broken as? // What was this box broken as?
if (cv_thunderdome.value) if (!K_ThunderDome() && special->cvmem && !(special->flags2 & MF2_BOSSDEAD))
K_StartItemRoulette(player, true);
else if (special->cvmem && !(special->flags2 & MF2_BOSSDEAD))
K_StartItemRoulette(player, false); K_StartItemRoulette(player, false);
else else
K_StartItemRoulette(player, true); K_StartItemRoulette(player, true);