From 4123a9e14ef092472468f24957719234143a596d Mon Sep 17 00:00:00 2001 From: NoOneBlood Date: Sun, 5 Jan 2020 16:48:22 +0300 Subject: [PATCH] - gModernMap guard instead of VanillaMode in dudeSpawn - No sound for player when jumping fix --- source/blood/src/player.cpp | 2 +- source/blood/src/triggers.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blood/src/player.cpp b/source/blood/src/player.cpp index 0a29544a5..07d1eaac7 100644 --- a/source/blood/src/player.cpp +++ b/source/blood/src/player.cpp @@ -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; diff --git a/source/blood/src/triggers.cpp b/source/blood/src/triggers.cpp index 1c7080a7f..61061de88 100644 --- a/source/blood/src/triggers.cpp +++ b/source/blood/src/triggers.cpp @@ -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 {