Fix Ballhog reticule/explode when landing in reverse gravity

Resolves ring-racers#22
This commit is contained in:
toaster 2025-09-12 15:32:04 +01:00
parent ccd27bb345
commit f3b37e9715

View file

@ -2392,7 +2392,10 @@ boolean P_ZMovement(mobj_t *mo)
break;
case MT_BALLHOG:
case MT_BALLHOG_RETICULE_TEST:
if (mo->z <= mo->floorz)
if ((mo->eflags & MFE_VERTICALFLIP)
? (mo->z + mo->height >= mo->ceilingz)
: (mo->z <= mo->floorz)
)
{
P_ExplodeMissile(mo);
return false;