Stumble floors are not damage, we use this to control area access!

This commit is contained in:
Antonio Martinez 2025-09-22 15:56:32 -04:00
parent 587eddeb70
commit 867dfb49f2

View file

@ -5421,9 +5421,9 @@ static void P_EvaluateDamageType(player_t *player, sector_t *sector, boolean isT
P_DamageMobj(player->mo, NULL, NULL, 1, DMG_INSTAKILL);
break;
case SD_STUMBLE:
if (isTouching)
if (isTouching && !((player->mo->momz > 0) != (P_MobjFlip(player->mo) > 0)))
{
P_DamageMobj(player->mo, NULL, NULL, 1, DMG_STUMBLE|DMG_WOMBO);
K_StumblePlayer(player);
}
break;