- gModernMap guard instead of VanillaMode in dudeSpawn

- No sound for player when jumping fix
This commit is contained in:
NoOneBlood 2020-01-05 16:48:22 +03:00 committed by Christoph Oelckers
parent 6f3ccdc651
commit 4123a9e14e
2 changed files with 2 additions and 2 deletions

View file

@ -1578,7 +1578,7 @@ void ProcessInput(PLAYER *pPlayer)
break;
default:
if (!pPlayer->cantJump && pInput->buttonFlags.jump && pXSprite->height == 0) {
if ((packItemActive(pPlayer, 4) && pPosture->pwupJumpZ > 1000) || pPosture->normalJumpZ > 1000)
if ((packItemActive(pPlayer, 4) && pPosture->pwupJumpZ != 0) || pPosture->normalJumpZ != 0)
sfxPlay3DSound(pSprite, 700, 0, 0);
if (packItemActive(pPlayer, 4)) zvel[nSprite] = pPosture->pwupJumpZ; //-0x175555;

View file

@ -1275,7 +1275,7 @@ void OperateSprite(int nSprite, XSPRITE *pXSprite, EVENT event)
spritetype* pSpawn = NULL;
// By NoOne: add spawn random dude feature - works only if at least 2 data fields are not empty.
if (!VanillaMode()) {
if (gModernMap) {
if ((pSpawn = spawnRandomDude(pSprite)) == NULL)
pSpawn = actSpawnDude(pSprite, pXSprite->data1, -1, 0);
} else {