Merge branch 'fix-cheese' into 'master'

Fix perma ring box anticheese

See merge request KartKrew/Kart!1572
This commit is contained in:
Oni 2023-10-22 00:06:16 +00:00
commit 9c585e35de

View file

@ -410,7 +410,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
special->flags &= ~MF_SPECIAL;
return;
case MT_RANDOMITEM: {
UINT8 cheesetype = (special->flags2 & MF2_AMBUSH) ? 2 : 1;
UINT8 cheesetype = (special->flags2 & MF2_BOSSDEAD) ? 2 : 1; // perma ring box
if (!P_CanPickupItem(player, 1))
return;