Commit dec2f8b7 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

Duke3d: move player jumping_counter check

parent 33d4dc3d
......@@ -5337,14 +5337,14 @@ void P_ProcessInput(int playerNum)
// jumping
if (!TEST_SYNC_KEY(playerBits, SK_JUMP) && 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 && !pPlayer->jumping_counter)
{
// dummy variables must be separate, otherwise breaks TROR computation
int32_t floorZ2, ceilZ2, dummy, dummy2;
getzrange(&pPlayer->pos, pPlayer->cursectnum, &ceilZ2, &dummy, &floorZ2, &dummy2, getZRangeClipDist, CLIPMASK0);
if (!pPlayer->jumping_counter && klabs(floorZ2-ceilZ2) > PTOTALHEIGHT)
if (klabs(floorZ2-ceilZ2) > PTOTALHEIGHT)
{
if (VM_OnEvent(EVENT_JUMP,pPlayer->i,playerNum) == 0)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment