- fixed: -nosfx deactivated the entire sound system which also made music inoperable. Changed it so that all it does is block sound effects from being started.

SVN r2621 (trunk)
This commit is contained in:
Christoph Oelckers 2010-08-28 13:36:41 +00:00
commit 1dd3ecd6e2
3 changed files with 5 additions and 2 deletions

View file

@ -827,7 +827,7 @@ static FSoundChan *S_StartSound(AActor *actor, const sector_t *sec, const FPolyO
FVector3 pos, vel;
FRolloffInfo *rolloff;
if (sound_id <= 0 || volume <= 0)
if (sound_id <= 0 || volume <= 0 || nosfx)
return NULL;
int type;