mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Fix clipping issue with jumping
git-svn-id: https://svn.eduke32.com/eduke32@7833 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
dc7ec3b2fe
commit
6d2ca41b9c
1 changed files with 3 additions and 2 deletions
|
@ -5147,9 +5147,10 @@ void P_ProcessInput(int playerNum)
|
||||||
pPlayer->jumping_toggle--;
|
pPlayer->jumping_toggle--;
|
||||||
else if (TEST_SYNC_KEY(playerBits, SK_JUMP) && pPlayer->jumping_toggle == 0)
|
else if (TEST_SYNC_KEY(playerBits, SK_JUMP) && pPlayer->jumping_toggle == 0)
|
||||||
{
|
{
|
||||||
getzrange(&pPlayer->pos, pPlayer->cursectnum, &ceilZ, &dummy, &dummy, &dummy, pPlayer->clipdist - 16, CLIPMASK0);
|
int32_t floorZ2, ceilZ2;
|
||||||
|
getzrange(&pPlayer->pos, pPlayer->cursectnum, &ceilZ2, &dummy, &floorZ2, &dummy, pPlayer->clipdist - 16, CLIPMASK0);
|
||||||
|
|
||||||
if ((floorZ-ceilZ) > (48<<8))
|
if ((floorZ2-ceilZ2) > (48<<8))
|
||||||
{
|
{
|
||||||
if (VM_OnEvent(EVENT_JUMP,pPlayer->i,playerNum) == 0)
|
if (VM_OnEvent(EVENT_JUMP,pPlayer->i,playerNum) == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue