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:
terminx 2019-09-17 03:19:56 +00:00 committed by Christoph Oelckers
parent 47fc547532
commit 22f67f17e9

View file

@ -5172,7 +5172,7 @@ void P_ProcessInput(int playerNum)
int32_t floorZ2, ceilZ2;
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)
{