From eaebcfcd7d28b3a7ff06f92b79997b6835ce5e00 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 13 Apr 2021 00:20:26 +0200 Subject: [PATCH] - Exhumed: hotfix for moving on sloped floors --- source/games/exhumed/src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/exhumed/src/player.cpp b/source/games/exhumed/src/player.cpp index 322fb6ecf..e8687d83d 100644 --- a/source/games/exhumed/src/player.cpp +++ b/source/games/exhumed/src/player.cpp @@ -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;