Fix stair snapping broken since FallAndSink override.

This commit is contained in:
Mari the Deer 2022-09-25 17:55:22 +02:00
commit 085f3e9685
2 changed files with 3 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r507 \cu(Sun 25 Sep 14:02:53 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r507 \cu(2022-09-25 14:02:53)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r508 \cu(Sun 25 Sep 17:55:22 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r508 \cu(2022-09-25 17:55:22)\c-";

View file

@ -2192,7 +2192,7 @@ Class Demolitionist : PlayerPawn
guidepitch *= .9;
guideroll *= .9;
// anchor to ground when going down steps
if ( lastground && !player.onground && !bFly && !bFlyCheat && (abs(pos.z-floorz) <= maxdropoffheight) && (player.jumptics == 0) && (vel.z < 0) && !isdashing )
if ( lastground && !player.onground && !bFly && !bFlyCheat && (abs(pos.z-floorz) <= maxdropoffheight) && (player.jumptics == 0) && (vel.z <= 0) && !isdashing )
{
// test for gap crossing (i.e: climbing up platforms with holes between them)
Vector3 storepos = pos;