mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Don't play DUKE_GOTHEALTHATLOW sound in standalone builds
git-svn-id: https://svn.eduke32.com/eduke32@6966 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f8fc87db78
commit
a919fecdbb
1 changed files with 2 additions and 1 deletions
|
@ -2302,9 +2302,10 @@ GAMEEXEC_STATIC void VM_Execute(native_t loop)
|
|||
{
|
||||
if (*insptr > 0)
|
||||
{
|
||||
#ifndef EDUKE32_STANDALONE
|
||||
if ((newHealth - *insptr) < (pPlayer->max_player_health >> 2) && newHealth >= (pPlayer->max_player_health >> 2))
|
||||
A_PlaySound(DUKE_GOTHEALTHATLOW, pPlayer->i);
|
||||
|
||||
#endif
|
||||
pPlayer->last_extra = newHealth;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue