Hotfix amendment

Also gain velocity from walking off an "up" elevator normally?

This _looks_ incorrect because the camera stops matching
the platform movement the moment you step off, but I
assure you it is a correct and accurate movement.
(Try it with chasecam off.)
This commit is contained in:
Yukita Mayako 2015-05-29 05:47:01 -04:00
parent 3bc56a91b2
commit 213a0caa23

View file

@ -1986,8 +1986,14 @@ static void P_PlayerZMovement(mobj_t *mo)
(FixedMul(cv_viewheight.value<<FRACBITS, mo->scale) - mo->player->viewheight)>>3; (FixedMul(cv_viewheight.value<<FRACBITS, mo->scale) - mo->player->viewheight)>>3;
} }
if (mo->pmomz && mo->z > mo->floorz) // adjust height
if (mo->pmomz && !P_IsObjectOnGround(mo))
{
if ((mo->eflags & MFE_VERTICALFLIP && mo->pmomz < 0)
|| (!(mo->eflags & MFE_VERTICALFLIP) && mo->pmomz > 0))
mo->momz += mo->pmomz;
mo->pmomz = 0; mo->pmomz = 0;
}
mo->z += mo->momz; mo->z += mo->momz;