mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 08:30:58 +00:00
Fix Duke's head bouncing off the ceiling when jumping
git-svn-id: https://svn.eduke32.com/eduke32@7439 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e77332db32
commit
1a9944a260
1 changed files with 2 additions and 2 deletions
|
@ -5127,12 +5127,12 @@ void P_ProcessInput(int playerNum)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((sectorLotag != ST_2_UNDERWATER || ceilZ != pPlayer->truecz) && pPlayer->pos.z < (ceilZ + PCROUCHINCREMENT))
|
if ((sectorLotag != ST_2_UNDERWATER || ceilZ != pPlayer->truecz) && pPlayer->opos.z < (ceilZ + PMINHEIGHT))
|
||||||
{
|
{
|
||||||
pPlayer->jumping_counter = 0;
|
pPlayer->jumping_counter = 0;
|
||||||
if (pPlayer->vel.z < 0)
|
if (pPlayer->vel.z < 0)
|
||||||
pPlayer->vel.x = pPlayer->vel.y = 0;
|
pPlayer->vel.x = pPlayer->vel.y = 0;
|
||||||
pPlayer->vel.z = 256;
|
pPlayer->vel.z = 128;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue