- the sound compatibility flags do not need level support.

They are intentionally omitted from both MAPINFO and compatibility settings.
This removes the last place where it still went through the map-modified versions of the compatflags.

# Conflicts:
#	src/s_sound.cpp
This commit is contained in:
Christoph Oelckers 2019-01-11 12:10:59 +01:00
parent af06d7cb9e
commit f7489976ec

View file

@ -973,15 +973,15 @@ static FSoundChan *S_StartSound(AActor *actor, const sector_t *sec, const FPolyO
return nullptr;
}
if (i_compatflags & COMPATF_MAGICSILENCE)
if (compatflags & COMPATF_MAGICSILENCE)
{ // For people who just can't play without a silent BFG.
channel = CHAN_WEAPON;
}
else if ((chanflags & CHAN_MAYBE_LOCAL) && (i_compatflags & COMPATF_SILENTPICKUP))
else if ((chanflags & CHAN_MAYBE_LOCAL) && (compatflags & COMPATF_SILENTPICKUP))
{
if (actor != NULL && actor != players[consoleplayer].camera)
if (actor != nullptr && actor != players[consoleplayer].camera)
{
return NULL;
return nullptr;
}
}