Merge pull request #24 from ENSL/pierow-fixes

turned off queued/autojump for jetpack
This commit is contained in:
pierow 2018-08-16 23:23:31 -04:00 committed by GitHub
commit 53655cc068
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5464,8 +5464,9 @@ void PM_Jump (void)
autojump = atoi(pmove->PM_Info_ValueForKey(pmove->physinfo, "jm2"));
queuedjump = atoi(pmove->PM_Info_ValueForKey(pmove->physinfo, "jm1"));
bool theHasJetpackUpgrade = GetHasUpgrade(pmove->iuser4, MASK_UPGRADE_7) && (pmove->iuser3 == AVH_USER3_MARINE_PLAYER);
if ((!autojump && !queuedjump) || pmove->iuser3 == AVH_USER3_ALIEN_PLAYER3)
if ((!autojump && !queuedjump) || pmove->iuser3 == AVH_USER3_ALIEN_PLAYER3 || theHasJetpackUpgrade)
{
if (pmove->oldbuttons & IN_JUMP)
return; // don't pogo stick