also rotate eggboxes in air

This commit is contained in:
Alug committed 2025-01-30 10:31:58 +01:00
1 parent 5edb0d0e3d
commit 7016b77ee8
1 file changed
+2 -2
+2 -2
View File
@@ -7815,6 +7815,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
@@ -7826,8 +7827,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);