- Exhumed: hotfix for moving on sloped floors

This commit is contained in:
Christoph Oelckers 2021-04-13 00:20:26 +02:00
parent aba5099ccb
commit eaebcfcd7d

View file

@ -1163,7 +1163,7 @@ void FuncPlayer(int a, int nDamage, int nRun)
}
sectdone:
if (!PlayerList[nPlayer].horizon.horiz.asbuild() || PlayerList[nPlayer].bIsFalling)
if ((!PlayerList[nPlayer].horizon.horiz.asbuild() || PlayerList[nPlayer].bIsFalling) && !(sector[sprite[nPlayerSprite].sectnum].floorstat & 2))
{
// Calculate base pan amount based on how much the player is falling.
fixed_t dVertPan = (spr_z - sprite[nPlayerSprite].z) << 9;