Duke3D: This should fix players being able to superjump out of water

This commit is contained in:
Dino Bollinger 2020-06-10 13:24:32 +02:00 committed by Christoph Oelckers
parent 9c2c1cc765
commit d3b6991846

View file

@ -5345,7 +5345,7 @@ void P_ProcessInput(int playerNum)
getzrange(&pPlayer->pos, pPlayer->cursectnum, &ceilZ2, &dummy, &floorZ2, &dummy, getZRangeClipDist, CLIPMASK0);
if (klabs(floorZ2-ceilZ2) > (48<<8))
if (!pPlayer->jumping_counter && klabs(floorZ2-ceilZ2) > (48<<8))
{
if (VM_OnEvent(EVENT_JUMP,pPlayer->i,playerNum) == 0)
{