mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- Exhumed: hotfix for moving on sloped floors
This commit is contained in:
parent
aba5099ccb
commit
eaebcfcd7d
1 changed files with 1 additions and 1 deletions
|
@ -1163,7 +1163,7 @@ void FuncPlayer(int a, int nDamage, int nRun)
|
||||||
}
|
}
|
||||||
|
|
||||||
sectdone:
|
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.
|
// Calculate base pan amount based on how much the player is falling.
|
||||||
fixed_t dVertPan = (spr_z - sprite[nPlayerSprite].z) << 9;
|
fixed_t dVertPan = (spr_z - sprite[nPlayerSprite].z) << 9;
|
||||||
|
|
Loading…
Reference in a new issue