mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
Add missing abs() call to z check before EVENT_JUMP
git-svn-id: https://svn.eduke32.com/eduke32@8098 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
47fc547532
commit
22f67f17e9
1 changed files with 1 additions and 1 deletions
|
@ -5172,7 +5172,7 @@ void P_ProcessInput(int playerNum)
|
||||||
int32_t floorZ2, ceilZ2;
|
int32_t floorZ2, ceilZ2;
|
||||||
getzrange(&pPlayer->pos, pPlayer->cursectnum, &ceilZ2, &dummy, &floorZ2, &dummy, pPlayer->clipdist - GETZRANGECLIPDISTOFFSET, CLIPMASK0);
|
getzrange(&pPlayer->pos, pPlayer->cursectnum, &ceilZ2, &dummy, &floorZ2, &dummy, pPlayer->clipdist - GETZRANGECLIPDISTOFFSET, CLIPMASK0);
|
||||||
|
|
||||||
if ((floorZ2-ceilZ2) > (48<<8))
|
if (klabs(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