Fix stumble behavior being used on non-stumble terrain

This commit is contained in:
Antonio Martinez 2025-09-28 20:16:56 -04:00
parent 06626c9b0d
commit 80c0db9546

View file

@ -502,7 +502,7 @@ void K_ProcessTerrainEffect(mobj_t *mo)
{
UINT8 dmg = (terrain->damageType & 0xFF);
if (dmg & DMG_STUMBLE && !G_CompatLevel(0x0010))
if ((dmg == DMG_STUMBLE) && !G_CompatLevel(0x0010))
{
if (player->mo->hitlag == 0 &&
(player->mo->momz == 0 || (player->mo->momz > 0) != (P_MobjFlip(player->mo) > 0)))