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:
terminx 2018-08-09 16:07:00 +00:00
parent f8fc87db78
commit a919fecdbb

View file

@ -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;
}