mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 23:31:50 +00:00
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:
parent
3bc56a91b2
commit
213a0caa23
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue