also rotate eggboxes in air

This commit is contained in:
Alug committed 2025-01-26 21:17:20 +01:00
1 parent 8543636576
commit ccc0189e70
1 file changed
+2 -2
+2 -2
View File
@@ -7820,6 +7820,7 @@ void P_MobjThinker(mobj_t *mobj)
break;
}
case MT_BANANA:
case MT_EGGMANITEM:
if (cv_sloperoll.value == 2 && cv_bananthrowroll.value && !P_IsObjectOnGround(mobj))
{
// tilt n tumble
@@ -7831,8 +7832,7 @@ void P_MobjThinker(mobj_t *mobj)
else if (cv_bananthrowroll.value == 2)
mobj->rollangle -= spin;
}
/* FALLTHRU */
case MT_EGGMANITEM:
mobj->friction = ORIG_FRICTION/4;
if (mobj->momx || mobj->momy)
P_SpawnGhostMobj(mobj);