mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
- gModernMap guard instead of VanillaMode in dudeSpawn
- No sound for player when jumping fix
This commit is contained in:
parent
6f3ccdc651
commit
4123a9e14e
2 changed files with 2 additions and 2 deletions
|
@ -1578,7 +1578,7 @@ void ProcessInput(PLAYER *pPlayer)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (!pPlayer->cantJump && pInput->buttonFlags.jump && pXSprite->height == 0) {
|
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);
|
sfxPlay3DSound(pSprite, 700, 0, 0);
|
||||||
|
|
||||||
if (packItemActive(pPlayer, 4)) zvel[nSprite] = pPosture->pwupJumpZ; //-0x175555;
|
if (packItemActive(pPlayer, 4)) zvel[nSprite] = pPosture->pwupJumpZ; //-0x175555;
|
||||||
|
|
|
@ -1275,7 +1275,7 @@ void OperateSprite(int nSprite, XSPRITE *pXSprite, EVENT event)
|
||||||
|
|
||||||
spritetype* pSpawn = NULL;
|
spritetype* pSpawn = NULL;
|
||||||
// By NoOne: add spawn random dude feature - works only if at least 2 data fields are not empty.
|
// 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)
|
if ((pSpawn = spawnRandomDude(pSprite)) == NULL)
|
||||||
pSpawn = actSpawnDude(pSprite, pXSprite->data1, -1, 0);
|
pSpawn = actSpawnDude(pSprite, pXSprite->data1, -1, 0);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue