mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
Don't trigger fall scream after player has died
This commit is contained in:
parent
7ac662e0c8
commit
a29303cde5
1 changed files with 6 additions and 2 deletions
|
@ -5010,10 +5010,14 @@ void MoveDude(spritetype *pSprite)
|
|||
}
|
||||
}
|
||||
if (pPlayer && zvel[nSprite] > 0x155555 && !pPlayer->fallScream && pXSprite->height > 0)
|
||||
{
|
||||
const bool playerAlive = (pXSprite->health > 0) || VanillaMode() || DemoRecordStatus(); // only trigger falling scream if player is alive
|
||||
if (playerAlive)
|
||||
{
|
||||
pPlayer->fallScream = 1;
|
||||
sfxPlay3DSound(pSprite, 719, 0, 0);
|
||||
}
|
||||
}
|
||||
vec3_t const oldpos = pSprite->pos;
|
||||
int nLink = CheckLink(pSprite);
|
||||
if (nLink)
|
||||
|
|
Loading…
Reference in a new issue