Merge branch 'fix-damage-floor-invinc' into 'master'

Fix stumble behavior being used on non-stumble terrain

See merge request kart-krew-dev/ring-racers-internal!2913
This commit is contained in:
AJ Martinez 2025-09-29 22:23:43 +00:00
commit 14201c65aa

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)))